Do not swallow failures in tests

This commit is contained in:
Sam Brannen
2023-10-12 17:51:01 +02:00
parent a4fe57a9e2
commit 047c2c1c20

View File

@@ -367,6 +367,7 @@ class BeanDefinitionMethodGeneratorTests {
assertThat(instance.getName()).isEqualTo("postprocessed");
}
catch (Exception ex) {
throw new IllegalStateException(ex);
}
SourceFile sourceFile = compiled.getSourceFile(".*BeanDefinitions");
assertThat(sourceFile).contains("instanceSupplier.andThen(");
@@ -405,6 +406,7 @@ class BeanDefinitionMethodGeneratorTests {
assertThat(instance.getName()).isEqualTo("postprocessed");
}
catch (Exception ex) {
throw new IllegalStateException(ex);
}
SourceFile sourceFile = compiled.getSourceFile(".*BeanDefinitions");
assertThat(sourceFile).contains("instanceSupplier.andThen(");