Changeset 9717 in josm for trunk/test/unit/org
- Timestamp:
- 2016-02-02T23:13:51+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/datatransfer/RelationMemberTransferableTest.java
r9711 r9717 4 4 import static org.junit.Assert.assertEquals; 5 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertNotNull; 6 7 import static org.junit.Assert.assertTrue; 7 8 import static org.openstreetmap.josm.gui.datatransfer.RelationMemberTransferable.RELATION_MEMBER_DATA; … … 60 61 RelationMemberTransferable rmt = new RelationMemberTransferable(Collections.singleton(new RelationMember("test", new Node(1)))); 61 62 assertEquals("node 1 test # incomplete\n", rmt.getTransferData(DataFlavor.stringFlavor)); 62 Collection<RelationMemberData> td = ((RelationMemberTransferable.Data) rmt.getTransferData(RELATION_MEMBER_DATA)).getRelationMemberData(); 63 Collection<RelationMemberData> td = ((RelationMemberTransferable.Data) rmt.getTransferData(RELATION_MEMBER_DATA)) 64 .getRelationMemberData(); 63 65 assertEquals(1, td.size()); 64 assert True(td.iterator().next() instanceof RelationMemberData);66 assertNotNull(td.iterator().next()); 65 67 } 66 68
Note:
See TracChangeset
for help on using the changeset viewer.