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/tools/RightAndLefthandTrafficTest.java

    r11324 r11921  
    1010
    1111import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     12import net.trajano.commons.testing.UtilityClassTestUtil;
    1213
    1314/**
     
    2122    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2223    public JOSMTestRules rules = new JOSMTestRules().platform().projection().commands();
     24
     25    /**
     26     * Tests that {@code RightAndLefthandTraffic} satisfies utility class criterias.
     27     * @throws ReflectiveOperationException if an error occurs
     28     */
     29    @Test
     30    public void testUtilityClass() throws ReflectiveOperationException {
     31        UtilityClassTestUtil.assertUtilityClassWellDefined(RightAndLefthandTraffic.class);
     32    }
    2333
    2434    /**
Note: See TracChangeset for help on using the changeset viewer.