Changeset 15455 in josm for trunk/test/unit
- Timestamp:
- 2019-10-12T22:12:57+02:00 (5 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/MergeLayerActionTest.java
r14332 r15455 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.actions; 3 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertNull; 3 6 4 7 import javax.swing.JLabel; 5 8 import javax.swing.JPanel; 6 9 7 import static org.junit.Assert.assertEquals;8 import static org.junit.Assert.assertNull;9 10 10 import org.junit.Before; 11 11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.TestUtils; 13 14 import org.openstreetmap.josm.data.osm.DataSet; 14 15 import org.openstreetmap.josm.gui.ExtendedDialog; … … 17 18 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 18 19 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 19 import org.openstreetmap.josm.TestUtils;20 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 21 21 import org.openstreetmap.josm.testutils.mockers.ExtendedDialogMocker; … … 36 36 @Rule 37 37 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 38 public JOSMTestRules test = new JOSMTestRules().main() ;38 public JOSMTestRules test = new JOSMTestRules().main().projection(); 39 39 40 40 /** … … 108 108 TestUtils.assumeWorkingJMockit(); 109 109 final MergeLayerExtendedDialogMocker edMocker = new MergeLayerExtendedDialogMocker(); 110 edMocker.getMockResultMap().put("Please select the target layer.", "Merge ");110 edMocker.getMockResultMap().put("Please select the target layer.", "Merge layer"); 111 111 112 112 OsmDataLayer layer1 = new OsmDataLayer(new DataSet(), "1", null); -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java
r14990 r15455 137 137 138 138 List<TestError> errors = testRelation(r); 139 assertEquals(1, errors.size()); 140 assertEquals("Role of relation member does not match template expression 'power' in preset Power Route", errors.get(0).getDescription()); 139 assertEquals(2, errors.size()); 140 assertEquals("Role 'line' missing", errors.get(0).getDescription()); 141 assertEquals("Empty role found when expecting one of 'line/substation'", errors.get(1).getDescription()); 141 142 } 142 143
Note:
See TracChangeset
for help on using the changeset viewer.