use of io.smallrye.graphql.client.core.exceptions.BuildException in project smallrye-graphql by smallrye.
the class EnumsTest method invalidValue.
@Test
public void invalidValue() {
try {
Document document = document(operation(QUERY, field("exams", args(arg("result", gqlEnum("wrong { }"))), field("score"))));
fail("Invalid enum value should not be accepted");
} catch (BuildException be) {
// OK
}
}
use of io.smallrye.graphql.client.core.exceptions.BuildException in project smallrye-graphql by smallrye.
the class EnumsTest method invalidValueTrue.
@Test
public void invalidValueTrue() {
try {
Document document = document(operation(QUERY, field("exams", args(arg("result", gqlEnum("true"))), field("score"))));
fail("Invalid enum value should not be accepted");
} catch (BuildException be) {
// OK
}
}
Aggregations