Skip to content

Commit

Permalink
Extend error message (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenger committed Jul 6, 2018
1 parent 0f7debe commit 5773654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public void boundingBoxParameter( Map<String, Object> collection ) {
assertNotNull( bbox, "Required bbox parameter for collections item with name '" + collectionName
+ "' in OpenAPI document is missing" );

String msg = "Expected property '%s' with value '%s' but was '%s'";
String msg = "Expected property '%s' with value '%s' for collections item with name '" + collectionName + "' but was '%s'.";

assertEquals( bbox.getName(), "bbox", String.format( msg, "name", "bbox", bbox.getName() ) );
assertEquals( bbox.getIn(), "query", String.format( msg, "in", "query", bbox.getIn() ) );
Expand Down

0 comments on commit 5773654

Please sign in to comment.