소스 검색

Cleanup expectation

Sam Jaffe 6 년 전
부모
커밋
c31478f997
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/test/java/org/leumasjaffe/json/schema/tester/PropertyNameTesterTest.java

+ 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);
 	}