-
Notifications
You must be signed in to change notification settings - Fork 62
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 with WicketTester #110
Comments
The exception is thrown in @Override
public RuntimeConfigurationType getConfigurationType() {
return generalSettingsProperties.getConfigurationType();
} The problem is that the WicketBootStandardWebApplication is based on the auto configuration of spring. If you don't configure your tests the Spring way you will get exceptions or not the identical configuration like your running production code (the autoconfiguration is missing). You can ovveriride the method and provide a runtime configuration type or you can have a look at the following tests: These tests are using the @SpringBootTest annotation. But I think for tests with mocks you shouldn't use the @SpringBootTest annotation.... |
@MarcGiffing, thanks for explanation. |
I was trying to run simple test case:
When I try to run it as JUnit I get:
can you please fix it?
The text was updated successfully, but these errors were encountered: