Package org.mule.tck.probe

Examples of org.mule.tck.probe.Probe


    public void testNoException() throws Exception
    {
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener("NoException", muleContext);
        createFileOnFtpServer("noException/test1");
        flowExecutionListener.waitUntilFlowIsComplete();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Delivery was successful so message should be gone
View Full Code Here


    public void testTransformerException() throws Exception
    {
        ExceptionListener exceptionListener = new ExceptionListener(muleContext);
        createFileOnFtpServer("transformerException/test1");
        exceptionListener.waitUntilAllNotificationsAreReceived();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    public void testRouterException() throws Exception
    {
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener("RouterException", muleContext);
        createFileOnFtpServer("routerException/test1");
        flowExecutionListener.waitUntilFlowIsComplete();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    public void testComponentException() throws Exception
    {
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener("ComponentException", muleContext);
        createFileOnFtpServer("componentException/test1");
        flowExecutionListener.waitUntilFlowIsComplete();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Component exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    public void testCatchExceptionStrategyConsumesMessage() throws Exception
    {
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener("CatchExceptionStrategy", muleContext);
        createFileOnFtpServer("exceptionHandled/test1");
        flowExecutionListener.waitUntilFlowIsComplete();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Component exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    public void testDefaultExceptionStrategyConsumesMessage() throws Exception
    {
        FlowExecutionListener flowExecutionListener = new FlowExecutionListener("DefaultExceptionStrategyCommit", muleContext);
        createFileOnFtpServer("commitOnException/test1");
        flowExecutionListener.waitUntilFlowIsComplete();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Component exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    public void testRollbackExceptionStrategyConsumesMessage() throws Exception
    {
        ExceptionListener exceptionListener = new ExceptionListener(muleContext).setNumberOfExecutionsRequired(4);
        createFileOnFtpServer("rollbackOnException/test1");
        exceptionListener.waitUntilAllNotificationsAreReceived();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                // Component exception occurs after the SEDA queue for an asynchronous request, so from the client's
View Full Code Here

    protected void assertThreads(final int acceptors)
    {
        PollingProber prober = new PollingProber(5000, 50);

        prober.check(new Probe()
        {
            int actual;

            public boolean isSatisfied()
            {
View Full Code Here

        // Restart the broker
        CustomConnectionFactory.returnInvalidConnections = false;
        startBroker();

        // Wait until jmsConnector is reconnected and started.
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return jmsConnector.isStarted();
View Full Code Here

        assertConsumersCount();

        this.stopBroker();

        PollingProber prober = new PollingProber(TIMEOUT_MILLIS, 500);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return receiver.consumers.isEmpty();
            }

            @Override
            public String describeFailure()
            {
                return "consumers were never released";
            }
        });

        this.startBroker();

        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                try
View Full Code Here

TOP

Related Classes of org.mule.tck.probe.Probe

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.