GH-160 - Polishing.

Moved the message population for the failure analyzer to the exception to be able to give more actionable feedback and educated users on the cause of the problem.
This commit is contained in:
Oliver Drotbohm
2023-03-07 13:08:25 +01:00
parent 595a052702
commit 22ff53d098
4 changed files with 45 additions and 28 deletions

View File

@@ -54,7 +54,7 @@ class SpringModulithRuntimeAutoConfigurationIntegrationTests {
});
}
@Test
@Test // GH-160
void missingArchUnitRuntimeDependencyEscalatesOnContextStartup() {
new ApplicationContextRunner()
@@ -65,8 +65,8 @@ class SpringModulithRuntimeAutoConfigurationIntegrationTests {
assertThat(context).hasFailed();
assertThat(context.getStartupFailure().getCause())
.isInstanceOf(BeanInstantiationException.class)
.cause().isInstanceOf(MissingRuntimeDependencyException.class);
.isInstanceOf(BeanInstantiationException.class)
.cause().isInstanceOf(MissingRuntimeDependency.class);
context.close();
});