Ignore:
Timestamp:
2017-04-15T20:20:00+02:00 (7 years ago)
Author:
Don-vip
Message:

improve unit test coverage of utilities classes thanks to https://trajano.github.io/commons-testing

File:
1 edited

Legend:

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

    r10945 r11921  
    2323
    2424import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     25import net.trajano.commons.testing.UtilityClassTestUtil;
    2526
    2627/**
     
    3435    @Rule
    3536    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    36     public JOSMTestRules test = new JOSMTestRules();
     37    public JOSMTestRules test = new JOSMTestRules().projection();
    3738
    3839    @Test(expected = OrthogonalizeAction.InvalidUserInputException.class)
     
    8485    }
    8586
     87    /**
     88     * Tests that {@code OrthogonalizeAction.EN} satisfies utility class criterias.
     89     * @throws ReflectiveOperationException if an error occurs
     90     */
     91    @Test
     92    public void testUtilityClass() throws ReflectiveOperationException {
     93        UtilityClassTestUtil.assertUtilityClassWellDefined(OrthogonalizeAction.EN.class);
     94    }
     95
    8696    DataSet performTest(String... search) throws Exception {
    8797        try (FileInputStream in = new FileInputStream(TestUtils.getTestDataRoot() + "orthogonalize.osm")) {
Note: See TracChangeset for help on using the changeset viewer.