Changeset 10744 in josm


Ignore:
Timestamp:
2016-08-06T10:54:30+02:00 (4 years ago)
Author:
Don-vip
Message:

see #12890 - remove calls to deprecated predicates in unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/gui/layer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/LayerManagerTest.java

    r10592 r10744  
    3333import org.openstreetmap.josm.gui.util.GuiHelper;
    3434import org.openstreetmap.josm.testutils.ExpectedRootException;
    35 import org.openstreetmap.josm.tools.Predicates;
    3635import org.openstreetmap.josm.tools.bugreport.ReportedException;
    3736
     
    109108        @Override
    110109        public LayerPositionStrategy getDefaultLayerPosition() {
    111             return LayerPositionStrategy.afterLast(Predicates.<Layer>alwaysTrue());
     110            return LayerPositionStrategy.afterLast(o -> true);
    112111        }
    113112    }
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/MainLayerManagerTest.java

    r10467 r10744  
    1616import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener;
    1717import org.openstreetmap.josm.gui.util.GuiHelper;
    18 import org.openstreetmap.josm.tools.Predicates;
    1918
    2019/**
     
    5150        @Override
    5251        public LayerPositionStrategy getDefaultLayerPosition() {
    53             return LayerPositionStrategy.afterLast(Predicates.<Layer>alwaysTrue());
     52            return LayerPositionStrategy.afterLast(o -> true);
    5453        }
    5554    }
Note: See TracChangeset for help on using the changeset viewer.