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);
}
@ -101,7 +101,7 @@ class ModelMBeanNotificationPublisherTests {
@@ -101,7 +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);
assertThat(ex).as("The Throwable passed to the handleListenerException(..) method must never be null.").isNotNull();
assertThat(exinstanceofListenerExecutionFailedException).as("The Throwable passed to the handleListenerException(..) method must be of type [ListenerExecutionFailedException].").isTrue();
assertThat(ex).as("The Throwable passed to the handleListenerException(..) method must be of type [ListenerExecutionFailedException].").isInstanceOf(ListenerExecutionFailedException.class);
assertThat(adapter.getMessageConverter()).as("The default [MessageConverter] must never be null.").isNotNull();
assertThat(adapter.getMessageConverter()instanceofSimpleMessageConverter).as("The default [MessageConverter] must be of the type [SimpleMessageConverter]").isTrue();
assertThat(adapter.getMessageConverter()).as("The default [MessageConverter] must be of the type [SimpleMessageConverter]").isInstanceOf(SimpleMessageConverter.class);
@ -56,7 +56,7 @@ public abstract class AbstractEntityManagerFactoryBeanTests {
@@ -56,7 +56,7 @@ public abstract class AbstractEntityManagerFactoryBeanTests {