Ignore:
Timestamp:
2016-10-08T14:04:09+02:00 (8 years ago)
Author:
Don-vip
Message:

add more unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/TestUtils.java

    r10580 r11102  
    1010import java.io.InputStream;
    1111import java.util.Arrays;
     12import java.util.Collection;
    1213import java.util.Comparator;
    1314
     15import org.openstreetmap.josm.command.Command;
    1416import org.openstreetmap.josm.data.osm.Node;
     17import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1518import org.openstreetmap.josm.data.osm.OsmUtils;
    1619import org.openstreetmap.josm.data.osm.Relation;
     
    245248        return relation;
    246249    }
     250
     251    /**
     252     * Creates a new empty command.
     253     * @return a new empty command
     254     */
     255    public static Command newCommand() {
     256        return new Command() {
     257            @Override
     258            public String getDescriptionText() {
     259                return "";
     260            }
     261
     262            @Override
     263            public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted,
     264                    Collection<OsmPrimitive> added) {
     265                // Do nothing
     266            }
     267        };
     268    }
    247269}
Note: See TracChangeset for help on using the changeset viewer.