Changeset 8391 in josm
- Timestamp:
- 2015-05-18T02:30:54+02:00 (10 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/conflict
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/conflict/nodes/NodeListMergeModelTest.java
r7937 r8391 13 13 import java.util.Arrays; 14 14 import java.util.List; 15 import java.util.Set; 15 16 16 17 import javax.swing.DefaultListSelectionModel; … … 655 656 model.addPropertyChangeListener(listener); 656 657 657 List<PropertyChangeListener> listeners = field("listeners")658 .ofType( List.class)658 Set<PropertyChangeListener> listeners = field("listeners") 659 .ofType(Set.class) 659 660 .in(model) 660 661 .get(); 661 662 662 663 assertEquals(1, listeners.size()); 663 assertEquals(listener, listeners. get(0));664 assertEquals(listener, listeners.iterator().next()); 664 665 } 665 666 … … 678 679 model.removePropertyChangeListener(listener); 679 680 680 List<PropertyChangeListener> listeners = field("listeners")681 .ofType( List.class)681 Set<PropertyChangeListener> listeners = field("listeners") 682 .ofType(Set.class) 682 683 .in(model) 683 684 .get(); -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagMergeModelTest.java
r7937 r8391 9 9 import java.beans.PropertyChangeListener; 10 10 import java.util.List; 11 import java.util.Set; 11 12 12 13 import org.junit.BeforeClass; … … 36 37 model.addPropertyChangeListener(listener); 37 38 38 List<?> list = field("listeners").ofType(List.class)39 .in(model) 40 .get(); 41 42 assertEquals(1, list.size()); 43 assertEquals(listener, list. get(0));39 Set<?> list = field("listeners").ofType(Set.class) 40 .in(model) 41 .get(); 42 43 assertEquals(1, list.size()); 44 assertEquals(listener, list.iterator().next()); 44 45 } 45 46 … … 55 56 model.removePropertyChangeListener(listener); 56 57 57 List<?> list = field("listeners")58 .ofType( List.class)58 Set<?> list = field("listeners") 59 .ofType(Set.class) 59 60 .in(model) 60 61 .get();
Note:
See TracChangeset
for help on using the changeset viewer.