Changeset 14281 in josm for trunk/test
- Timestamp:
- 2018-09-30T00:46:01+02:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/upload/FixDataHookTest.java
r14134 r14281 42 42 public void testCheckUpload() { 43 43 // Empty data set 44 UndoRedoHandler.getInstance(). commands.clear();44 UndoRedoHandler.getInstance().getUndoCommands().clear(); 45 45 new FixDataHook().checkUpload(new APIDataSet()); 46 assertTrue(UndoRedoHandler.getInstance(). commands.isEmpty());46 assertTrue(UndoRedoHandler.getInstance().getUndoCommands().isEmpty()); 47 47 48 48 // Complete data set (except empty node which cannot be tested anymore) … … 76 76 ads.init(new DataSet(emptyWay, emptyRelation, w1, w2, w3, w4, w5, w6, w7, r1, r2)); 77 77 78 UndoRedoHandler.getInstance(). commands.clear();78 UndoRedoHandler.getInstance().getUndoCommands().clear(); 79 79 new FixDataHook().checkUpload(ads); 80 assertEquals(1, UndoRedoHandler.getInstance(). commands.size());80 assertEquals(1, UndoRedoHandler.getInstance().getUndoCommands().size()); 81 81 82 SequenceCommand seq = (SequenceCommand) UndoRedoHandler.getInstance(). commands.iterator().next();82 SequenceCommand seq = (SequenceCommand) UndoRedoHandler.getInstance().getUndoCommands().iterator().next(); 83 83 Collection<? extends OsmPrimitive> prims = seq.getParticipatingPrimitives(); 84 84 assertNotNull(prims); -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/CommandStackDialogTest.java
r14138 r14281 57 57 UndoRedoHandler.getInstance().undo(1); 58 58 59 assert False(UndoRedoHandler.getInstance().commands.isEmpty());60 assert False(UndoRedoHandler.getInstance().redoCommands.isEmpty());59 assertTrue(UndoRedoHandler.getInstance().hasUndoCommands()); 60 assertTrue(UndoRedoHandler.getInstance().hasRedoCommands()); 61 61 62 62 MapFrame map = MainApplication.getMap();
Note:
See TracChangeset
for help on using the changeset viewer.