Changeset 9231 in josm for trunk/test/unit
- Timestamp:
- 2016-01-01T02:35:34+01:00 (9 years ago)
- 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 40 40 } 41 41 42 /** 43 * Check for mispelled key. 44 * @throws IOException if any I/O error occurs 45 */ 42 46 @Test 43 public void testInvalidKey() throws Exception {47 public void testInvalidKey() throws IOException { 44 48 final List<TestError> errors = test(OsmUtils.createPrimitive("node Name=Main")); 45 49 assertEquals(1, errors.size()); … … 48 52 } 49 53 54 /** 55 * Check for mispelled key. 56 * @throws IOException if any I/O error occurs 57 */ 50 58 @Test 51 public void testMisspelledKey() throws Exception {59 public void testMisspelledKey() throws IOException { 52 60 final List<TestError> errors = test(OsmUtils.createPrimitive("node landuse;=forest")); 53 61 assertEquals(1, errors.size()); … … 56 64 } 57 65 66 /** 67 * Check for unknown key. 68 * @throws IOException if any I/O error occurs 69 */ 58 70 @Test 59 public void testTranslatedNameKey() throws Exception {71 public void testTranslatedNameKey() throws IOException { 60 72 final List<TestError> errors = test(OsmUtils.createPrimitive("node namez=Baz")); 61 73 assertEquals(1, errors.size()); … … 64 76 } 65 77 78 /** 79 * Check for mispelled value. 80 * @throws IOException if any I/O error occurs 81 */ 66 82 @Test 67 public void testMisspelledTag() throws Exception {83 public void testMisspelledTag() throws IOException { 68 84 final List<TestError> errors = test(OsmUtils.createPrimitive("node landuse=forrest")); 69 85 assertEquals(1, errors.size()); -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModelTest.java
r8880 r9231 20 20 import org.openstreetmap.josm.data.osm.Way; 21 21 22 /** 23 * Unit tests of {@link RelationMemberConflictResolverModel} class. 24 */ 22 25 public class RelationMemberConflictResolverModelTest { 23 26 -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/ToolbarPreferencesTest.java
r8857 r9231 30 30 } 31 31 32 @Override 32 33 public void actionPerformed(ActionEvent e, Map<String, Object> parameters) { 34 // Do nothing 33 35 } 34 36 37 @Override 35 38 public List<ActionParameter<?>> getActionParameters() { 36 39 List<ActionParameter<?>> result = new ArrayList<>(); … … 40 43 } 41 44 45 @Override 42 46 public void actionPerformed(ActionEvent e) { 43 47 // Do nothing 44 48 } 45 49 } -
trunk/test/unit/org/openstreetmap/josm/gui/util/RotationAngleTest.java
r8857 r9231 13 13 private static final double EPSILON = 1e-11; 14 14 15 /** 16 * Unit test of method {@link RotationAngle#buildStaticRotation} - nominal cases. 17 */ 15 18 @Test 16 19 public void testParseCardinal() { … … 20 23 } 21 24 25 /** 26 * Unit test of method {@link RotationAngle#buildStaticRotation} - wrong parameter. 27 */ 22 28 @Test(expected = IllegalArgumentException.class) 23 29 public void testParseFail() { … … 25 31 } 26 32 33 /** 34 * Unit test of method {@link RotationAngle#buildStaticRotation} - null handling. 35 */ 27 36 @Test(expected = NullPointerException.class) 28 37 public void testParseNull() { -
trunk/test/unit/org/openstreetmap/josm/tools/ImageProviderTest.java
r9147 r9231 52 52 } 53 53 54 /** 55 * Test fetching an image using {@code wiki://} protocol. 56 */ 54 57 @Test 55 public void testWikiProtocol() throws Exception{58 public void testWikiProtocol() { 56 59 // https://commons.wikimedia.org/wiki/File:OpenJDK_logo.svg 57 60 assertNotNull(ImageProvider.get("wiki://OpenJDK_logo.svg"));
Note:
See TracChangeset
for help on using the changeset viewer.