Changeset 9231 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-01-01T02:35:34+01:00 (8 years ago)
Author:
Don-vip
Message:

javadoc update

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r9023 r9231  
    4040    }
    4141
     42    /**
     43     * Check for mispelled key.
     44     * @throws IOException if any I/O error occurs
     45     */
    4246    @Test
    43     public void testInvalidKey() throws Exception {
     47    public void testInvalidKey() throws IOException {
    4448        final List<TestError> errors = test(OsmUtils.createPrimitive("node Name=Main"));
    4549        assertEquals(1, errors.size());
     
    4852    }
    4953
     54    /**
     55     * Check for mispelled key.
     56     * @throws IOException if any I/O error occurs
     57     */
    5058    @Test
    51     public void testMisspelledKey() throws Exception {
     59    public void testMisspelledKey() throws IOException {
    5260        final List<TestError> errors = test(OsmUtils.createPrimitive("node landuse;=forest"));
    5361        assertEquals(1, errors.size());
     
    5664    }
    5765
     66    /**
     67     * Check for unknown key.
     68     * @throws IOException if any I/O error occurs
     69     */
    5870    @Test
    59     public void testTranslatedNameKey() throws Exception {
     71    public void testTranslatedNameKey() throws IOException {
    6072        final List<TestError> errors = test(OsmUtils.createPrimitive("node namez=Baz"));
    6173        assertEquals(1, errors.size());
     
    6476    }
    6577
     78    /**
     79     * Check for mispelled value.
     80     * @throws IOException if any I/O error occurs
     81     */
    6682    @Test
    67     public void testMisspelledTag() throws Exception {
     83    public void testMisspelledTag() throws IOException {
    6884        final List<TestError> errors = test(OsmUtils.createPrimitive("node landuse=forrest"));
    6985        assertEquals(1, errors.size());
  • trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModelTest.java

    r8880 r9231  
    2020import org.openstreetmap.josm.data.osm.Way;
    2121
     22/**
     23 * Unit tests of {@link RelationMemberConflictResolverModel} class.
     24 */
    2225public class RelationMemberConflictResolverModelTest {
    2326
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/ToolbarPreferencesTest.java

    r8857 r9231  
    3030        }
    3131
     32        @Override
    3233        public void actionPerformed(ActionEvent e, Map<String, Object> parameters) {
     34            // Do nothing
    3335        }
    3436
     37        @Override
    3538        public List<ActionParameter<?>> getActionParameters() {
    3639            List<ActionParameter<?>> result = new ArrayList<>();
     
    4043        }
    4144
     45        @Override
    4246        public void actionPerformed(ActionEvent e) {
    43 
     47            // Do nothing
    4448        }
    4549    }
  • trunk/test/unit/org/openstreetmap/josm/gui/util/RotationAngleTest.java

    r8857 r9231  
    1313    private static final double EPSILON = 1e-11;
    1414
     15    /**
     16     * Unit test of method {@link RotationAngle#buildStaticRotation} - nominal cases.
     17     */
    1518    @Test
    1619    public void testParseCardinal() {
     
    2023    }
    2124
     25    /**
     26     * Unit test of method {@link RotationAngle#buildStaticRotation} - wrong parameter.
     27     */
    2228    @Test(expected = IllegalArgumentException.class)
    2329    public void testParseFail() {
     
    2531    }
    2632
     33    /**
     34     * Unit test of method {@link RotationAngle#buildStaticRotation} - null handling.
     35     */
    2736    @Test(expected = NullPointerException.class)
    2837    public void testParseNull() {
  • trunk/test/unit/org/openstreetmap/josm/tools/ImageProviderTest.java

    r9147 r9231  
    5252    }
    5353
     54    /**
     55     * Test fetching an image using {@code wiki://} protocol.
     56     */
    5457    @Test
    55     public void testWikiProtocol() throws Exception {
     58    public void testWikiProtocol() {
    5659        // https://commons.wikimedia.org/wiki/File:OpenJDK_logo.svg
    5760        assertNotNull(ImageProvider.get("wiki://OpenJDK_logo.svg"));
Note: See TracChangeset for help on using the changeset viewer.