Changeset 10962 in josm for trunk/test/unit/org/openstreetmap/josm/MainTest.java
- Timestamp:
- 2016-09-05T01:10:07+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/MainTest.java
r10899 r10962 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertNotNull; 5 6 import static org.junit.Assert.assertNull; 6 7 import static org.junit.Assert.assertTrue; 7 8 8 9 import java.util.Collection; 10 11 import javax.swing.UIManager; 9 12 10 13 import org.junit.BeforeClass; … … 67 70 assertTrue(warnings.contains("W: First line of warning message on several lines")); 68 71 } 72 73 /** 74 * Unit test of {@link Main#preConstructorInit}. 75 */ 76 @Test 77 public void testPreConstructorInit() { 78 Main.preConstructorInit(); 79 assertNotNull(Main.getProjection()); 80 assertEquals(Main.pref.get("laf", Main.platform.getDefaultStyle()), UIManager.getLookAndFeel().getClass().getCanonicalName()); 81 assertNotNull(Main.toolbar); 82 } 69 83 }
Note:
See TracChangeset
for help on using the changeset viewer.
