mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix incomplete AssertJ assertions
Closes gh-30743
This commit is contained in:
@@ -102,7 +102,7 @@ public class MBeanExporterTests extends AbstractMBeanServerTests {
|
||||
exporter.setNotificationListenerMappings(listeners);
|
||||
assertThatExceptionOfType(MBeanExportException.class).as("NotificationListener on a non-existent MBean").isThrownBy(() ->
|
||||
start(exporter))
|
||||
.satisfies(ex -> assertThat(ex.contains(InstanceNotFoundException.class)));
|
||||
.satisfies(ex -> assertThat(ex.contains(InstanceNotFoundException.class)).isTrue());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user