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

Last change on this file since 33613 was 33613, checked in by donvip, 7 years ago

fix #josm15159 - add compatibility with new JOSM plugin classloader mechanism. Java does not allow for a class A to access a package-scope class B in the same package if they don't share the same classloader

  • Property svn:eol-style set to native
File size: 1.3 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.IOException;
7import java.io.InputStream;
8
9import javax.xml.stream.FactoryConfigurationError;
10import javax.xml.stream.XMLStreamException;
11
12import org.junit.Rule;
13import org.junit.Test;
14import org.openstreetmap.josm.TestUtils;
15import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests;
16import org.openstreetmap.josm.testutils.JOSMTestRules;
17
18/**
19 * Unit tests of {@link TabReader} class.
20 */
21public class TabReaderTest {
22
23 /**
24 * Setup test.
25 */
26 @Rule
27 public JOSMTestRules rules = new JOSMTestRules().preferences().projection().timeout(60000);
28
29 /**
30 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/15159">#15159</a>
31 * @throws IOException if an error occurs during reading
32 */
33 @Test
34 public void testTicket15159() throws IOException, XMLStreamException, FactoryConfigurationError {
35 File file = new File(TestUtils.getRegressionDataFile(15159, "Sanisette.tab"));
36 try (InputStream is = new FileInputStream(file)) {
37 NonRegFunctionalTests.testGeneric("#15159", TabReader.parseDataSet(is, file, null, null));
38 }
39 }
40}
Note: See TracBrowser for help on using the repository browser.