Ignore:
Timestamp:
2015-08-12T12:39:42+02:00 (10 years ago)
Author:
nokutu
Message:

Added several new commands to improve history record system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/commands/MapillaryRecordTest.java

    r31482 r31490  
    1010import org.openstreetmap.josm.plugins.mapillary.MapillaryAbstractImage;
    1111import org.openstreetmap.josm.plugins.mapillary.MapillaryImage;
     12import org.openstreetmap.josm.plugins.mapillary.history.MapillaryRecord;
     13import org.openstreetmap.josm.plugins.mapillary.history.commands.CommandMove;
     14import org.openstreetmap.josm.plugins.mapillary.history.commands.CommandTurn;
     15import org.openstreetmap.josm.plugins.mapillary.history.commands.MapillaryCommand;
    1216
    1317/**
     
    4145  @Test
    4246  public void commandTest() {
    43     MapillaryCommand cmd12 = new CommandMoveImage(
     47    MapillaryCommand cmd12 = new CommandMove(
    4448        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img2 }),
    4549        0.1, 0.1);
    46     MapillaryCommand cmd23 = new CommandMoveImage(
     50    MapillaryCommand cmd23 = new CommandMove(
    4751        Arrays.asList(new MapillaryAbstractImage[] { this.img2, this.img3 }),
    4852        0.1, 0.1);
    49     MapillaryCommand cmd13 = new CommandMoveImage(
     53    MapillaryCommand cmd13 = new CommandMove(
    5054        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img3 }),
    5155        0.1, 0.1);
    52     MapillaryCommand cmd1 = new CommandMoveImage(
     56    MapillaryCommand cmd1 = new CommandMove(
    5357        Arrays.asList(new MapillaryAbstractImage[] { this.img1 }),
    5458        0.1, 0.1);
    55     MapillaryCommand cmd31 = new CommandMoveImage(
     59    MapillaryCommand cmd31 = new CommandMove(
    5660        Arrays.asList(new MapillaryAbstractImage[] { this.img3, this.img1 }),
    5761        0.2, 0.2);
     
    98102  @Test
    99103  public void commandMoveTest() {
    100     CommandMoveImage cmd1 = new CommandMoveImage(
     104    CommandMove cmd1 = new CommandMove(
    101105        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img2 }),
    102106        0.1, 0.1);
    103     CommandMoveImage cmd2 = new CommandMoveImage(
     107    CommandMove cmd2 = new CommandMove(
    104108        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img2 }),
    105109        0.1, 0.1);
     
    132136  @Test
    133137  public void commandTurnTest() {
    134     CommandTurnImage cmd1 = new CommandTurnImage(
     138    CommandTurn cmd1 = new CommandTurn(
    135139        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img2 }),
    136140        0.2);
    137     CommandTurnImage cmd2 = new CommandTurnImage(
     141    CommandTurn cmd2 = new CommandTurn(
    138142        Arrays.asList(new MapillaryAbstractImage[] { this.img1, this.img2 }),
    139143        0.1);
Note: See TracChangeset for help on using the changeset viewer.