Ignore:
Timestamp:
2016-10-12T01:40:24+02:00 (8 years ago)
Author:
Don-vip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetDataSetTest.java

    r11115 r11121  
    22package org.openstreetmap.josm.data.osm;
    33
     4import java.util.Date;
     5import java.util.Set;
     6
     7import org.junit.Assert;
    48import org.junit.Rule;
    59import org.junit.Test;
    6 import org.junit.Assert;
     10import org.openstreetmap.josm.Main;
     11import org.openstreetmap.josm.data.coor.LatLon;
     12import org.openstreetmap.josm.data.osm.ChangesetDataSet.ChangesetModificationType;
     13import org.openstreetmap.josm.data.osm.history.HistoryNode;
     14import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
    715import org.openstreetmap.josm.testutils.JOSMTestRules;
    8 import org.openstreetmap.josm.data.osm.ChangesetDataSet.ChangesetModificationType;
    916
    1017import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    11 import java.util.Date;
    12 import java.util.Set;
    13 import org.openstreetmap.josm.data.coor.LatLon;
    14 import org.openstreetmap.josm.data.osm.history.HistoryNode;
    15 import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
    1618
    1719/**
     
    3840            Assert.fail("Should have thrown an IllegalArgumentException as we gave a null argument.");
    3941        } catch (IllegalArgumentException e) {
     42            Main.trace(e);
    4043            // Was expected
    4144        }
    42        
     45
    4346        // empty object, a modification type => empty list
    4447        Assert.assertTrue(
     
    4750                    ChangesetModificationType.CREATED).isEmpty()
    4851        );
    49        
     52
    5053        // object with various items and modification types, fetch for CREATED
    5154        // => list containing only the CREATED item
     
    6063        Assert.assertEquals("We should have found only one item.", 1, result.size());
    6164        Assert.assertTrue("The item found is prim1.", result.contains(prim1));
    62        
    6365    }
    6466}
Note: See TracChangeset for help on using the changeset viewer.