-
Notifications
You must be signed in to change notification settings - Fork 40.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE when @SpringBootTest(webEnvironment = RANDOM_PORT) and @WebAppConfiguration are used together #6795
Comments
Another option could be to skip over |
SO question on the matter: http://stackoverflow.com/questions/39237328/nullpointerexception-when-using-springboottest-annotation-with-webenvironment. |
That's the route I'd opt for in order to avoid any further unexpected side effects. |
We're going to fail fast |
We overlooked #6371 when we decided to fail fast |
So the saga continues.... What is your current plan of action? |
We're going to fail fast when the two are used in combination and |
Sounds good, @wilkinsona! 👍 |
The context fails to load due to a NullPointerException:
There's no need to use
@WebAppConfiguration
when you're using@SpringBootTest
and, in this case at least, it's harmful. Perhaps we should fail fast, telling the user to remove@WebAppConfiguration
?The text was updated successfully, but these errors were encountered: