Changeset 10200 in josm for trunk/test
- Timestamp:
- 2016-05-13T03:11:46+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/MainTest.java
r8857 r10200 7 7 import static org.junit.Assert.assertTrue; 8 8 9 import java.awt.Dimension; 10 import java.awt.Point; 9 11 import java.util.Collection; 10 12 13 import org.junit.BeforeClass; 11 14 import org.junit.Test; 12 15 import org.openstreetmap.josm.Main.DownloadParamType; 16 import org.openstreetmap.josm.gui.MainApplication; 17 import org.openstreetmap.josm.tools.WindowGeometry; 13 18 14 19 /** … … 16 21 */ 17 22 public class MainTest { 23 24 /** 25 * Setup test. 26 */ 27 @BeforeClass 28 public static void setUp() { 29 JOSMFixture.createUnitTestFixture().init(); 30 } 18 31 19 32 /** … … 28 41 assertEquals(DownloadParamType.httpUrl, DownloadParamType.paramType("http://somewhere.com/data.osm")); 29 42 assertEquals(DownloadParamType.httpUrl, DownloadParamType.paramType("https://somewhere.com/data.osm")); 43 } 44 45 /** 46 * Unit test of {@code Main#preConstructorInit}. 47 */ 48 @Test 49 public void testPreConstructorInit() { 50 Main.preConstructorInit(MainApplication.buildCommandLineArgumentMap(new String[0])); 51 Main.preConstructorInit(MainApplication.buildCommandLineArgumentMap(new String[]{"--geometry=400x300+10+5", "--no-maximize"})); 52 assertEquals(new WindowGeometry(new Point(10, 5), new Dimension(400, 300)), Main.geometry); 30 53 } 31 54
Note:
See TracChangeset
for help on using the changeset viewer.