Browse Source

Do not swallow failures in tests

pull/31428/head
Sam Brannen 1 year ago
parent
commit
047c2c1c20
  1. 2
      spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java

2
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGeneratorTests.java

@ -367,6 +367,7 @@ class BeanDefinitionMethodGeneratorTests { @@ -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 { @@ -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(");

Loading…
Cancel
Save