File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
core/src/test/java/org/everit/json/schema Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,14 @@ public void multipleSchemaDepViolation() {
143
143
ageFailure = tmp ;
144
144
}
145
145
ValidationException billingAddressFailure = creditCardFailure .getCausingExceptions ().get (0 );
146
+ ValidationException billingNameFailure = creditCardFailure .getCausingExceptions ().get (1 );
147
+ if (billingAddressFailure .getPointerToViolation ().equals ("#/billing_name" )) {
148
+ ValidationException tmp = billingAddressFailure ;
149
+ billingAddressFailure = billingNameFailure ;
150
+ billingNameFailure = tmp ;
151
+ }
146
152
assertEquals ("#/billing_address" , billingAddressFailure .getPointerToViolation ());
147
153
assertEquals (billingAddressSchema , billingAddressFailure .getViolatedSchema ());
148
- ValidationException billingNameFailure = creditCardFailure
149
- .getCausingExceptions ().get (1 );
150
154
assertEquals ("#/billing_name" , billingNameFailure .getPointerToViolation ());
151
155
assertEquals (billingNameSchema , billingNameFailure .getViolatedSchema ());
152
156
assertEquals ("#" , ageFailure .getPointerToViolation ());
You can’t perform that action at this time.
0 commit comments