-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change requestNew feature, improvement or change request
Milestone
Description
Description
There is a good practice to add an integration test that Spring context is loaded correctly (see https://www.jvt.me/posts/2021/06/25/spring-context-test/ for more details).
If this test fails, all other tests fail automatically an the problem is not in the method under test, but in context autowiring.
@Test
void contextLoads() {
// This test fails if our Spring configuration is not loaded correctly
}We should also try to obtain the cause of Spring context incorrect loading from our application instantiator (however, it may be difficult) and to show it to the user.
@Test
void contextLoads() {
// This test fails if our Spring configuration is not loaded correctly
// The reason is <Exception type, message and cause>
}Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change requestNew feature, improvement or change request
Type
Projects
Status
Done