Fix incomplete AssertJ assertions

Closes gh-30743
This commit is contained in:
Johnny Lim
2023-06-25 00:46:08 +09:00
committed by Sam Brannen
parent 209e02cf29
commit 6c816c55d1
4 changed files with 7 additions and 7 deletions

View File

@@ -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