Changeset 10133 in josm for trunk/test/unit/org/openstreetmap/josm/data/validation/routines
- Timestamp:
- 2016-04-10T13:37:15+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/validation/routines
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTest.java
r9967 r10133 20 20 import static org.junit.Assert.assertFalse; 21 21 import static org.junit.Assert.assertNotNull; 22 import static org.junit.Assert.assertNull; 22 23 import static org.junit.Assert.assertTrue; 23 24 import static org.junit.Assert.fail; … … 478 479 return sorted && strictlySorted && lowerCase; 479 480 } 481 482 /** 483 * Unit test of {@link DomainValidator#getValidatorName}. 484 */ 485 @Test 486 public void testValidatorName() { 487 assertNull(DomainValidator.getInstance().getValidatorName()); 488 } 480 489 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/EmailValidatorTest.java
r9853 r10133 574 574 assertTrue(validator.isValid("abc@school.school")); 575 575 } 576 577 /** 578 * Unit test of {@link EmailValidator#getValidatorName}. 579 */ 580 @Test 581 public void testValidatorName() { 582 assertEquals("Email validator", EmailValidator.getInstance().getValidatorName()); 583 } 576 584 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/InetAddressValidatorTest.java
r9853 r10133 19 19 20 20 import static org.junit.Assert.assertFalse; 21 import static org.junit.Assert.assertNull; 21 22 import static org.junit.Assert.assertTrue; 22 23 … … 615 616 // CHECKSTYLE.ON: MethodLengthCheck 616 617 // CHECKSTYLE.ON: LineLength 618 619 /** 620 * Unit test of {@link InetAddressValidator#getValidatorName}. 621 */ 622 @Test 623 public void testValidatorName() { 624 assertNull(new InetAddressValidator().getValidatorName()); 625 } 617 626 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/RegexValidatorTest.java
r9967 r10133 257 257 258 258 /** 259 * Unit test of {@link RegexValidator#getValidatorName}. 260 */ 261 @Test 262 public void testValidatorName() { 263 assertNull(new RegexValidator(".*").getValidatorName()); 264 } 265 266 /** 259 267 * Compare two arrays 260 268 * @param label Label for the test -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/UrlValidatorTest.java
r9967 r10133 546 546 } 547 547 548 /** 549 * Unit test of {@link UrlValidator#getValidatorName}. 550 */ 551 @Test 552 public void testValidatorName() { 553 assertEquals("URL validator", UrlValidator.getInstance().getValidatorName()); 554 } 555 548 556 //-------------------- Test data for creating a composite URL 549 557 /**
Note:
See TracChangeset
for help on using the changeset viewer.