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