@ -55,6 +56,7 @@ public class NotificationListenerBean extends NotificationListenerHolder impleme
@@ -55,6 +56,7 @@ public class NotificationListenerBean extends NotificationListenerHolder impleme
@ -75,19 +75,13 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -75,19 +75,13 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@ -95,7 +89,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -95,7 +89,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
fail("Must have thrown an IllegalArgumentException when registering a null instance as a NotificationListener.");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -116,7 +111,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -116,7 +111,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
try{
exporter.afterPropertiesSet();
fail("Must have thrown an MBeanExportException when registering a NotificationListener on a non-existent MBean.");
@ -473,7 +469,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -473,7 +469,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectMode(-1);
fail("Must have failed when supplying an invalid negative out-of-range autodetect mode");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -482,7 +479,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -482,7 +479,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectMode(5);
fail("Must have failed when supplying an invalid positive out-of-range autodetect mode");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -491,7 +489,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -491,7 +489,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectModeName(null);
fail("Must have failed when supplying a null autodetect mode name");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -500,7 +499,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -500,7 +499,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectModeName("");
fail("Must have failed when supplying an empty autodetect mode name");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -509,7 +509,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -509,7 +509,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectModeName(" \t");
fail("Must have failed when supplying a whitespace-only autodetect mode name");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -518,7 +519,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -518,7 +519,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
MBeanExporterexporter=newMBeanExporter();
exporter.setAutodetectModeName("That Hansel is... *sssooo* hot right now!");
fail("Must have failed when supplying a whitespace-only autodetect mode name");
}catch(IllegalArgumentExceptionexpected){
}
catch(IllegalArgumentExceptionexpected){
}
}
@ -530,7 +532,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -530,7 +532,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
exporter.setBeans(beans);
exporter.afterPropertiesSet();
fail("Expecting exception because MBeanExporter is not running in a BeanFactory and was passed bean name to (lookup and then) export");
}catch(MBeanExportExceptionexpected){
}
catch(MBeanExportExceptionexpected){
}
}
@ -540,7 +543,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -540,7 +543,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
fail("Expecting exception because MBeanExporter is not running in a BeanFactory and was configured to autodetect beans");
}catch(MBeanExportExceptionexpected){
}
catch(MBeanExportExceptionexpected){
}
}
@ -634,7 +638,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
@@ -634,7 +638,8 @@ public final class MBeanExporterTests extends AbstractMBeanServerTests {
try{
exporter.afterPropertiesSet();
fail("Must have failed during creation of RuntimeExceptionThrowingConstructorBean");
}catch(RuntimeExceptionexpected){
}
catch(RuntimeExceptionexpected){
}
assertIsNotRegistered("Must have unregistered all previously registered MBeans due to RuntimeException",