Examples of DummyNotificationListener


Examples of management.testclasses.DummyNotificationListener

   * Test sending a normal notification
   */
  @Test
  public void sendGenericNotification() {
    manager.sendNotification(new DefaultNotification("Test Message"));
    DummyNotificationListener listener = Beans.getReference(DummyNotificationListener.class);
    Assert.assertEquals("Test Message", listener.getMessage());
  }
View Full Code Here

Examples of management.testclasses.DummyNotificationListener

  @Test
  public void sendAttributeChangeNotification() {
    Notification n = new DefaultNotification( new AttributeChangeMessage("Test Message", "attribute", String.class, "old", "new") );
    manager.sendNotification(n);
   
    DummyNotificationListener listener = Beans.getReference(DummyNotificationListener.class);
    Assert.assertEquals("Test Message - attribute", listener.getMessage());
  }
View Full Code Here

Examples of management.testclasses.DummyNotificationListener

        manager.setProperty(type, "id", new Integer(10));
        break;
      }
    }

    DummyNotificationListener listener = Beans.getReference(DummyNotificationListener.class);
    Assert.assertEquals(
        bundle.getString("management-notification-attribute-changed", "id",
            DummyManagedClass.class.getCanonicalName())
            + " - id", listener.getMessage());
  }
View Full Code Here

Examples of org.mule.munit.runner.mule.result.notification.DummyNotificationListener

            return new StreamNotificationListener(new PrintStream(new FileOutputStream(getFile(project.getBasedir() + TARGET_SUREFIRE_REPORTS_MUNIT_TXT + fileName))));
        }
        catch (FileNotFoundException e)
        {
          e.printStackTrace();
            return new DummyNotificationListener();
        }
        catch (IOException e)
        {
          e.printStackTrace();
            return new DummyNotificationListener();
        }
    }
View Full Code Here

Examples of org.mule.munit.runner.mule.result.notification.DummyNotificationListener

            return new XmlNotificationListener(fileName, new PrintStream(new FileOutputStream(getFile(project.getBasedir() + TARGET_SUREFIRE_REPORTS_TEST_MUNIT_XML + fileName))));
        }
        catch (FileNotFoundException e)
        {
          e.printStackTrace();
            return new DummyNotificationListener();
        }
        catch (IOException e)
        {
          e.printStackTrace();
            return new DummyNotificationListener();
        }
    }
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.