assertThat(mbean.getActualNotification()).as("The exact same Notification is not being passed through from the publisher to the mbean.").isSameAs(notification);
assertThat(mbean.getActualNotification().getSource()).as("The 'source' property of the Notification is not being set to the ObjectName of the associated MBean.").isSameAs(objectName);
}
@ -102,8 +101,7 @@ class ModelMBeanNotificationPublisherTests {
@@ -102,8 +101,7 @@ class ModelMBeanNotificationPublisherTests {
assertThat(mbean.getActualNotification()).as("The exact same Notification is not being passed through from the publisher to the mbean.").isSameAs(notification);
assertThat(mbean.getActualNotification().getSource()).as("The 'source' property of the Notification is *wrongly* being set to the ObjectName of the associated MBean.").isSameAs(this);
@ -93,8 +93,7 @@ public abstract class AbstractApplicationContextTests extends AbstractListableBe
@@ -93,8 +93,7 @@ public abstract class AbstractApplicationContextTests extends AbstractListableBe
assertThat(aca.getApplicationContext()).as("has had context set").isSameAs(applicationContext);
assertThat(condition).as("Says is prototype").isTrue();
assertThat(!applicationContext.isSingleton("aca-prototype")).as("Says is prototype").isTrue();
}
@Test
@ -128,8 +127,7 @@ public abstract class AbstractApplicationContextTests extends AbstractListableBe
@@ -128,8 +127,7 @@ public abstract class AbstractApplicationContextTests extends AbstractListableBe
assertThat(condition).as("The Throwable passed to the handleListenerException(..) method must be of type [ListenerExecutionFailedException].").isTrue();
assertThat(exinstanceofListenerExecutionFailedException).as("The Throwable passed to the handleListenerException(..) method must be of type [ListenerExecutionFailedException].").isTrue();
assertThat(condition).as("The default [MessageConverter] must be of the type [SimpleMessageConverter]").isTrue();
assertThat(adapter.getMessageConverter()instanceofSimpleMessageConverter).as("The default [MessageConverter] must be of the type [SimpleMessageConverter]").isTrue();