|
@@ -1,7 +1,6 @@
|
|
|
package org.leumasjaffe.json.schema.tester;
|
|
package org.leumasjaffe.json.schema.tester;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertThat;
|
|
import static org.junit.Assert.assertThat;
|
|
|
-import static org.junit.Assert.fail;
|
|
|
|
|
import static org.leumasjaffe.json.schema.matcher.Accepts.accepts;
|
|
import static org.leumasjaffe.json.schema.matcher.Accepts.accepts;
|
|
|
import static org.leumasjaffe.json.schema.matcher.JsonPath.jsonPath;
|
|
import static org.leumasjaffe.json.schema.matcher.JsonPath.jsonPath;
|
|
|
import static org.leumasjaffe.json.schema.matcher.AcceptedTypes.acceptsTypes;
|
|
import static org.leumasjaffe.json.schema.matcher.AcceptedTypes.acceptsTypes;
|
|
@@ -148,11 +147,7 @@ public class FormatTesterTest {
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void testValidateDoesNothingOnSuccess() {
|
|
public void testValidateDoesNothingOnSuccess() {
|
|
|
- try {
|
|
|
|
|
- FormatTester.forCode("ipv6").validate(new TextNode("::1"));
|
|
|
|
|
- } catch (ValidationException ve) {
|
|
|
|
|
- fail("An exception occured: " + ve.getMessage());
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ FormatTester.forCode("ipv6").validate(new TextNode("::1"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test(expected=ValidationException.class)
|
|
@Test(expected=ValidationException.class)
|