Package uk.co.blackpepper.mock.jmx

Examples of uk.co.blackpepper.mock.jmx.MockMBeanServerConnection


  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueNumber() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute) {
        return INT_VALUE;
      }     
View Full Code Here


   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueDate() {
    final Date date = new Date();
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute) {
        return date;
      }     
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueString() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute) {
        return "1.2";
      }     
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueComposite() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute)
      throws MBeanException {
        try {
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueCompositeNoNames() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute)
      throws MBeanException {
        try {
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueCompositeTabular() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute)
      throws MBeanException {
        try {
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueCompositeComposite() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute)
      throws MBeanException {
        try {
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueCompositeCompositeTabular() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute)
      throws MBeanException {
        try {
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueNull() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute) {
        return null;
      }     
View Full Code Here

  /**
   * Test method for {@link uk.co.blackpepper.test.stats.data.jmx.JMXAttributeStatisticTest#getValue()}.
   */
  @Test
  public void testGetValueBadValue() {
    statistic.setConnection(new MockMBeanServerConnection() {
      public Object getAttribute(
          final ObjectName name,
          final String attribute) {
        return TEST;
      }     
View Full Code Here

TOP

Related Classes of uk.co.blackpepper.mock.jmx.MockMBeanServerConnection

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.