Package org.springframework.jmx.export

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


  }

  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

    }.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

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

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

    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

  }

  @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

Related Classes of org.springframework.jmx.export.SpringModelMBean

Copyright © 2018 www.massapicom. 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.