mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +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