Changeset 12726 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2017-09-04T23:45:49+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/conflict/pair/ConflictResolverTest.java
r11102 r12726 5 5 import static org.junit.Assert.assertNotNull; 6 6 7 import java.util.NoSuchElementException; 8 7 9 import org.junit.Rule; 8 10 import org.junit.Test; … … 10 12 import org.openstreetmap.josm.data.conflict.Conflict; 11 13 import org.openstreetmap.josm.data.coor.LatLon; 14 import org.openstreetmap.josm.data.osm.DataSet; 12 15 import org.openstreetmap.josm.data.osm.Node; 13 16 import org.openstreetmap.josm.data.osm.Relation; … … 32 35 * Unit test of {@link ConflictResolver#buildResolveCommand} - empty case. 33 36 */ 34 @Test 37 @Test(expected = NoSuchElementException.class) 35 38 public void testBuildResolveCommandEmpty() { 36 39 assertNotNull(new ConflictResolver().buildResolveCommand()); … … 47 50 Node n2 = new Node(LatLon.NORTH_POLE); 48 51 n2.put("source", "theirs"); 52 new DataSet(n1, n2); 49 53 resolver.populate(new Conflict<>(n1, n2)); 50 54 resolver.decideRemaining(MergeDecisionType.KEEP_MINE); … … 62 66 Way w2 = new Way(); 63 67 w2.put("source", "theirs"); 68 new DataSet(w1, w2); 64 69 resolver.populate(new Conflict<>(w1, w2)); 65 70 resolver.decideRemaining(MergeDecisionType.KEEP_MINE); … … 77 82 Relation r2 = new Relation(); 78 83 r2.put("source", "theirs"); 84 new DataSet(r1, r2); 79 85 resolver.populate(new Conflict<>(r1, r2)); 80 86 resolver.decideRemaining(MergeDecisionType.KEEP_MINE); -
trunk/test/unit/org/openstreetmap/josm/gui/datatransfer/OsmTransferHandlerTest.java
r12564 r12726 64 64 public void testPasteTags() { 65 65 Node n = new Node(LatLon.ZERO); 66 new DataSet(n); 66 67 67 68 ClipboardUtils.copyString("test=ok"); -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/CommandStackDialogTest.java
r12641 r12726 46 46 @Test 47 47 public void testCommandStackDialogNotEmpty() { 48 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 48 DataSet ds = new DataSet(); 49 OsmDataLayer layer = new OsmDataLayer(ds, "", null); 49 50 MainApplication.getLayerManager().addLayer(layer); 50 51 try { 51 Command cmd1 = TestUtils.newCommand( );52 Command cmd2 = TestUtils.newCommand( );52 Command cmd1 = TestUtils.newCommand(ds); 53 Command cmd2 = TestUtils.newCommand(ds); 53 54 MainApplication.undoRedo.add(cmd1); 54 55 MainApplication.undoRedo.add(cmd2);
Note:
See TracChangeset
for help on using the changeset viewer.