Changeset 10202 in josm for trunk/test


Ignore:
Timestamp:
2016-05-13T04:20:36+02:00 (9 years ago)
Author:
Don-vip
Message:

increase code coverage

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

Legend:

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

    r9214 r10202  
    1313import org.openstreetmap.josm.JOSMFixture;
    1414import org.openstreetmap.josm.data.coor.LatLon;
     15import org.openstreetmap.josm.data.osm.Changeset;
    1516import org.openstreetmap.josm.data.osm.DataSet;
    1617import org.openstreetmap.josm.data.osm.Node;
     
    409410        assertTrue(r2.getMembers().contains(new RelationMember("relation-1", r1)));
    410411    }
     412
     413    /**
     414     * Unit test of {@code AbstractVisitor#visit(org.openstreetmap.josm.data.osm.Changeset)}.
     415     */
     416    @Test
     417    public void testVisitChangeset() {
     418        new MergeSourceBuildingVisitor(new DataSet()).visit(new Changeset());
     419    }
    411420}
  • trunk/test/unit/org/openstreetmap/josm/data/validation/routines/EmailValidatorTest.java

    r10133 r10202  
    6060    public void testEmail()  {
    6161        assertTrue(validator.isValid("jsmith@apache.org"));
     62        assertFalse(validator.isValid(null));
    6263    }
    6364
Note: See TracChangeset for help on using the changeset viewer.