Replies: 10 comments
-
Does it work if you are using (Btw. I think the dependency should have |
Beta Was this translation helpful? Give feedback.
-
No, it is still NULL using |
Beta Was this translation helpful? Give feedback.
-
At least the spring-boot run issue should have been resolved by adding the test scope. From the code provided here I have no more ideas, maybe it is related to maven setup? |
Beta Was this translation helpful? Give feedback.
-
Which maven setup is suspicious of causing the error? |
Beta Was this translation helpful? Give feedback.
-
That was just an idea, the cause is perhaps something different. I don't have any specific suspicion. |
Beta Was this translation helpful? Give feedback.
-
I am facing the same error.
IntelliJ complains:
I tried using Does anyone have an idea about this? |
Beta Was this translation helpful? Give feedback.
-
Yeah I am facing the same.
Could not autowire. I noticed there is no |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ok, so I removed
Even though IntelliJ complains, the graphqlTestTemplate bean is actually injected on application startup. |
Beta Was this translation helpful? Give feedback.
-
I played around with it as well, following @jeet23's comment worked for me. Thanks!
|
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am trying to test my GraphQL query with GraphQLTestTemplate. Here is my test class:
pom.xml:
mvn test
fails the first assertion:assertNotNull(graphQLTestTemplate);
Besides, running it with
mvn spring-boot:run
bumps into the following runtime exception:To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions