This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch feature/SLING-9550
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
The following commit(s) were added to refs/heads/feature/SLING-9550 by this
push:
new 99062b5 SLING-9550 - Fail if no failure
99062b5 is described below
commit 99062b5ba0fae5b438a10d8a3b46074c6c622b97
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Fri Jun 26 16:31:53 2020 +0200
SLING-9550 - Fail if no failure
---
.../java/org/apache/sling/graphql/core/engine/CustomScalarsTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/src/test/java/org/apache/sling/graphql/core/engine/CustomScalarsTest.java
b/src/test/java/org/apache/sling/graphql/core/engine/CustomScalarsTest.java
index c633da4..ad524b3 100644
--- a/src/test/java/org/apache/sling/graphql/core/engine/CustomScalarsTest.java
+++ b/src/test/java/org/apache/sling/graphql/core/engine/CustomScalarsTest.java
@@ -21,7 +21,7 @@ package org.apache.sling.graphql.core.engine;
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
import static org.junit.Assert.assertThat;
-
+import static org.junit.Assert.fail;
import static org.hamcrest.Matchers.equalTo;
import org.apache.sling.graphql.api.ScalarConversionException;
@@ -57,6 +57,7 @@ public class CustomScalarsTest extends ResourceQueryTestBase {
final String query = String.format("{ address (url: \"%s\") { url
hostname } }", url);
try {
queryJSON(query);
+ fail("Expecting a parsing exception for URL=" + url);
} catch(Exception e) {
TestUtil.assertNestedException(e, ScalarConversionException.class,
URLScalarConverter.class.getSimpleName() + ":Invalid URL:" + url);
}