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

Location:
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactoryTest.java

    r11562 r11921  
    66import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.Context;
    77import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.Op;
     8import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.PseudoClasses;
    89import org.openstreetmap.josm.testutils.JOSMTestRules;
    910
    1011import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     12import net.trajano.commons.testing.UtilityClassTestUtil;
    1113
    1214/**
     
    3032        ConditionFactory.createKeyValueCondition("name", "Rodovia ([A-Z]{2,3}-[0-9]{2,4}", Op.REGEX, Context.PRIMITIVE, false);
    3133    }
     34
     35    /**
     36     * Tests that {@code PseudoClasses} satisfies utility class criterias.
     37     * @throws ReflectiveOperationException if an error occurs
     38     */
     39    @Test
     40    public void testUtilityClass() throws ReflectiveOperationException {
     41        UtilityClassTestUtil.assertUtilityClassWellDefined(PseudoClasses.class);
     42    }
    3243}
Note: See TracChangeset for help on using the changeset viewer.