Ignore:
Timestamp:
2015-10-14T23:35:44+02:00 (9 years ago)
Author:
Don-vip
Message:

cleanup unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

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

    r8857 r8876  
    2626    }
    2727
     28    /**
     29     * Test of {@link CopyAction#getCopyString} method for a single way.
     30     */
    2831    @Test
    29     public void testCopyStringWay() throws Exception {
     32    public void testCopyStringWay() {
    3033        final Way way = new Way(123L);
    3134        assertEquals("way 123", CopyAction.getCopyString(Collections.singleton(way)));
    3235    }
    3336
     37    /**
     38     * Test of {@link CopyAction#getCopyString} method for a way and a relation.
     39     */
    3440    @Test
    35     public void testCopyStringWayRelation() throws Exception {
     41    public void testCopyStringWayRelation() {
    3642        final Way way = new Way(123L);
    3743        final Relation relation = new Relation(456);
  • trunk/test/unit/org/openstreetmap/josm/actions/CreateCircleActionTest.java

    r8857 r8876  
    44import static org.junit.Assert.assertSame;
    55import static org.junit.Assert.assertTrue;
     6import static org.junit.Assert.fail;
    67
    78import java.awt.geom.Area;
     
    5051     * I don't know why, but in other tests there are no problem to add selected primitives
    5152     * but in this case there is a problem with an even listener of selection change.
     53     * @param p primitive
     54     * @param ds data set
    5255     */
    5356    public void addSelected(OsmPrimitive p, DataSet ds) {
     
    6063        } catch (Exception e) {
    6164            e.printStackTrace();
    62             assertTrue("Can't add OsmPrimitive to dataset", false);
     65            fail("Can't add OsmPrimitive to dataset: " + e.getMessage());
    6366        }
    6467    }
     
    162165        } catch (Exception e) {
    163166            e.printStackTrace();
    164             assertTrue("Impossible to mock left/right hand database", false);
     167            fail("Impossible to mock left/right hand database: " + e.getMessage());
    165168        }
    166169
  • trunk/test/unit/org/openstreetmap/josm/actions/SplitWayActionTest.java

    r8857 r8876  
    4242     */
    4343    @Test
    44     public void test11184() throws Exception {
     44    public void testTicket11184() {
    4545        DataSet dataSet = new DataSet();
    4646        OsmDataLayer layer = new OsmDataLayer(dataSet, OsmDataLayer.createNewName(), null);
Note: See TracChangeset for help on using the changeset viewer.