Changeset 12253 in josm for trunk/test
- Timestamp:
- 2017-05-25T03:01:03+02:00 (7 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/DNSNameFixTest.java
r12244 r12253 9 9 10 10 /** 11 * Unit tests of {@link DNSName } class.11 * Unit tests of {@link DNSNameFix} class. 12 12 */ 13 public class DNSName Test {13 public class DNSNameFixTest { 14 14 15 15 /** 16 * Unit test of {@link DNSName #DNSName} - null check.16 * Unit test of {@link DNSNameFix#DNSNameFix} - null check. 17 17 * @throws IOException always (expected with null name) 18 18 */ 19 19 @Test(expected = IOException.class) 20 20 public void testDNSNameNull() throws IOException { 21 new DNSName (null);21 new DNSNameFix(null); 22 22 } 23 23 24 24 /** 25 * Unit test of {@link DNSName #DNSName} - nominal cases.25 * Unit test of {@link DNSNameFix#DNSNameFix} - nominal cases. 26 26 * @throws IOException never 27 27 */ 28 28 @Test 29 29 public void testDNSNameNominal() throws IOException { 30 assertEquals("localhost", new DNSName ("localhost").getName());31 assertEquals("127.0.0.1", new DNSName ("127.0.0.1").getName());30 assertEquals("localhost", new DNSNameFix("localhost").getName()); 31 assertEquals("127.0.0.1", new DNSNameFix("127.0.0.1").getName()); 32 32 } 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.