source: osm/applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabReaderTest.java@ 34153

Last change on this file since 34153 was 34153, checked in by donvip, 6 years ago

fix javadoc warnings

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins.opendata.core.io.geographic;
3
4import java.io.File;
5import java.io.FileInputStream;
6import java.io.InputStream;
7
8import org.junit.Rule;
9import org.junit.Test;
10import org.openstreetmap.josm.TestUtils;
11import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests;
12import org.openstreetmap.josm.testutils.JOSMTestRules;
13
14/**
15 * Unit tests of {@link TabReader} class.
16 */
17public class TabReaderTest {
18
19 /**
20 * Setup test.
21 */
22 @Rule
23 public JOSMTestRules rules = new JOSMTestRules().preferences().projection().timeout(60000);
24
25 /**
26 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15159">#15159</a>
27 * @throws Exception if an error occurs during reading
28 */
29 @Test
30 public void testTicket15159() throws Exception {
31 File file = new File(TestUtils.getRegressionDataFile(15159, "Sanisette.tab"));
32 try (InputStream is = new FileInputStream(file)) {
33 NonRegFunctionalTests.testGeneric("#15159", TabReader.parseDataSet(is, file, null, null));
34 }
35 }
36}
Note: See TracBrowser for help on using the repository browser.