|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2015 the original author or authors. |
|
|
|
* Copyright 2002-2016 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -227,13 +227,7 @@ public class JsonPathExpectationsHelper { |
|
|
|
try { |
|
|
|
try { |
|
|
|
return this.jsonPath.read(content); |
|
|
|
return this.jsonPath.read(content); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (InvalidPathException ex) { |
|
|
|
catch (InvalidPathException | IndexOutOfBoundsException ex) { |
|
|
|
throw new AssertionError(message + ex.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (ArrayIndexOutOfBoundsException ex) { |
|
|
|
|
|
|
|
throw new AssertionError(message + ex.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (IndexOutOfBoundsException ex) { |
|
|
|
|
|
|
|
throw new AssertionError(message + ex.getMessage()); |
|
|
|
throw new AssertionError(message + ex.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|