Ignore:
Timestamp:
2015-05-18T02:30:54+02:00 (7 years ago)
Author:
Don-vip
Message:

fix unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagMergeModelTest.java

    r7937 r8391  
    99import java.beans.PropertyChangeListener;
    1010import java.util.List;
     11import java.util.Set;
    1112
    1213import org.junit.BeforeClass;
     
    3637        model.addPropertyChangeListener(listener);
    3738
    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());
    4445    }
    4546
     
    5556        model.removePropertyChangeListener(listener);
    5657
    57         List<?> list = field("listeners")
    58         .ofType(List.class)
     58        Set<?> list = field("listeners")
     59        .ofType(Set.class)
    5960        .in(model)
    6061        .get();
Note: See TracChangeset for help on using the changeset viewer.