Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit eb9e27e

Browse files
committed
Fix package private exception handler tests
1 parent bae4dbc commit eb9e27e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/spring/web/boot/GraphQLErrorHandlerTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ void illegalArgumentExceptionShouldBeHandledConcretely() {
4343
TestUtils.assertGraphQLError(
4444
gql,
4545
"query { illegalArgumentException }",
46-
new ThrowableGraphQLError(new IllegalArgumentException("Illegal argument"),
47-
"Illegal argument"),
46+
new ThrowableGraphQLError(new IllegalArgumentException("Some argument"),
47+
"Custom illegal argument"),
4848
objectMapper
4949
);
5050
}
@@ -70,12 +70,12 @@ boolean illegalStateException() {
7070
}
7171

7272
@ExceptionHandler(IllegalArgumentException.class)
73-
ThrowableGraphQLError handle(IllegalArgumentException e) {
74-
return new ThrowableGraphQLError(e, "Illegal argument");
73+
public ThrowableGraphQLError handle(IllegalArgumentException e) {
74+
return new ThrowableGraphQLError(e, "Custom illegal argument");
7575
}
7676

7777
@ExceptionHandler(Throwable.class)
78-
GraphQLError handle(Throwable e) {
78+
public GraphQLError handle(Throwable e) {
7979
return new ThrowableGraphQLError(e, "Catch all handler");
8080
}
8181

0 commit comments

Comments
 (0)