Examples of SpringModelMBean


Examples of org.springframework.jmx.export.SpringModelMBean

  }

  public void testCtorWithNullObjectName() throws Exception {
    new AssertThrows(IllegalArgumentException.class) {
      public void test() throws Exception {
        new ModelMBeanNotificationPublisher(new SpringModelMBean(), null, this);
      }
    }.runTest();
  }
View Full Code Here

Examples of org.springframework.jmx.export.SpringModelMBean

  }

  public void testCtorWithNullManagedResource() throws Exception {
    new AssertThrows(IllegalArgumentException.class) {
      public void test() throws Exception {
        new ModelMBeanNotificationPublisher(new SpringModelMBean(), createObjectName(), null);
      }
    }.runTest();
  }
View Full Code Here

Examples of org.springframework.jmx.export.SpringModelMBean

    }.runTest();
  }

  public void testSendNullNotification() throws Exception {
    final NotificationPublisher publisher
        = new ModelMBeanNotificationPublisher(new SpringModelMBean(), createObjectName(), this);
    new AssertThrows(IllegalArgumentException.class) {
      public void test() throws Exception {
        publisher.sendNotification(null);
      }
    }.runTest();
View Full Code Here

Examples of org.springframework.jmx.export.SpringModelMBean

    new ModelMBeanNotificationPublisher(null, createObjectName(), this);
  }

  @Test(expected=IllegalArgumentException.class)
  public void testCtorWithNullObjectName() throws Exception {
    new ModelMBeanNotificationPublisher(new SpringModelMBean(), null, this);
  }
View Full Code Here

Examples of org.springframework.jmx.export.SpringModelMBean

    new ModelMBeanNotificationPublisher(new SpringModelMBean(), null, this);
  }

  @Test(expected=IllegalArgumentException.class)
  public void testCtorWithNullManagedResource() throws Exception {
    new ModelMBeanNotificationPublisher(new SpringModelMBean(), createObjectName(), null);
  }
View Full Code Here

Examples of org.springframework.jmx.export.SpringModelMBean

  }

  @Test(expected=IllegalArgumentException.class)
  public void testSendNullNotification() throws Exception {
    NotificationPublisher publisher
        = new ModelMBeanNotificationPublisher(new SpringModelMBean(), createObjectName(), this);
    publisher.sendNotification(null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.