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.
|
---|
2 | package org.openstreetmap.josm.plugins.opendata.core.io.geographic;
|
---|
3 |
|
---|
4 | import java.io.File;
|
---|
5 | import java.io.FileInputStream;
|
---|
6 | import java.io.IOException;
|
---|
7 | import java.io.InputStream;
|
---|
8 |
|
---|
9 | import javax.xml.stream.FactoryConfigurationError;
|
---|
10 | import javax.xml.stream.XMLStreamException;
|
---|
11 |
|
---|
12 | import org.junit.Rule;
|
---|
13 | import org.junit.Test;
|
---|
14 | import org.openstreetmap.josm.TestUtils;
|
---|
15 | import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests;
|
---|
16 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Unit tests of {@link TabReader} class.
|
---|
20 | */
|
---|
21 | public 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.