Last change
on this file since 10432 was 10432, checked in by Don-vip, 8 years ago |
fix #13001 - Add MainPanel + some new methods (patch by michael2402, modified) - gsoc-core
|
-
Property svn:eol-style
set to
native
|
File size:
1007 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNull;
|
---|
5 | import static org.junit.Assert.assertTrue;
|
---|
6 |
|
---|
7 | import java.io.File;
|
---|
8 |
|
---|
9 | import org.junit.Rule;
|
---|
10 | import org.junit.Test;
|
---|
11 | import org.openstreetmap.josm.Main;
|
---|
12 | import org.openstreetmap.josm.TestUtils;
|
---|
13 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Unit tests of {@link NoteImporter} class.
|
---|
17 | */
|
---|
18 | public class NoteImporterTest {
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Use the test rules to remove any layers and reset state.
|
---|
22 | */
|
---|
23 | @Rule
|
---|
24 | public final JOSMTestRules rules = new JOSMTestRules();
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/12531">Bug #12531</a>.
|
---|
28 | */
|
---|
29 | @Test
|
---|
30 | public void testTicket12531() {
|
---|
31 | Main.getLayerManager().resetState();
|
---|
32 | assertNull(Main.map);
|
---|
33 | assertTrue(new NoteImporter().importDataHandleExceptions(
|
---|
34 | new File(TestUtils.getRegressionDataFile(12531, "notes.osn")), null));
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.