Explorar el Código

Cleanup expectation

Sam Jaffe hace 6 años
padre
commit
c31478f997

+ 1 - 3
src/test/java/org/leumasjaffe/json/schema/tester/PropertyNameTesterTest.java

@@ -73,12 +73,10 @@ public class PropertyNameTesterTest {
 	@Test
 	public void testProducesSubExceptionForEachException() {
 		thrown.expect(ValidationException.class);
-		thrown.expect(jsonPath("#/propertyNames"));
+		thrown.expect(causedBy(iterableWithSize(2)));
 		final ObjectNode node = new ObjectNode(JsonNodeFactory.instance);
 		node.set("AB", NullNode.getInstance());
 		node.set("BC", NullNode.getInstance());
-		thrown.expect(ValidationException.class);
-		thrown.expect(causedBy(iterableWithSize(2)));
 		singleChar.validate(node);
 	}