source: josm/trunk/test/unit/org/openstreetmap/josm/MainTest.java@ 14126

Last change on this file since 14126 was 14125, checked in by Don-vip, 6 years ago

see #15229 - extract lifecycle Main classes to a new lifecycle SPI

File size: 887 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm;
3
4import static org.junit.Assert.assertNotNull;
5
6import org.junit.Rule;
7import org.junit.Test;
8import org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager;
9import org.openstreetmap.josm.testutils.JOSMTestRules;
10
11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12
13/**
14 * Unit tests of {@link Main} class.
15 */
16public class MainTest {
17
18 /**
19 * Setup test.
20 */
21 @Rule
22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
23 public JOSMTestRules test = new JOSMTestRules().platform().https().devAPI().main().projection();
24
25 /**
26 * Unit test of {@link Main#preConstructorInit}.
27 */
28 @Test
29 public void testPreConstructorInit() {
30 Main.preConstructorInit();
31 assertNotNull(CoordinateFormatManager.getDefaultFormat());
32 }
33}
Note: See TracBrowser for help on using the repository browser.