Package org.mule.tck.probe

Examples of org.mule.tck.probe.Probe


    private void waitForTheNextPoll()
    {
        final int currentPollCount = pollCount.get();
        Prober prober = new PollingProber(2000, 100);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return pollCount.get() > currentPollCount;
View Full Code Here


   
    @Override
    public void testTransformerException() throws Exception
    {
        createFileOnFtpServer("transformerException/test1");
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                // Exception occurs after the SEDA queue for an asynchronous request, so from the client's
                // perspective, the message has been delivered successfully.
View Full Code Here

   
    @Override
    public void testRouterException() throws Exception
    {
        createFileOnFtpServer("routerException/test1");
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                // Exception occurs after the SEDA queue for an asynchronous request, so from the client's
                // perspective, the message has been delivered successfully.
View Full Code Here

    {
        createSampleFeedFileInWorkDirectory();

        final EntryReceiver component = (EntryReceiver) getComponent("feedSplitterConsumer");
        Prober prober = new PollingProber(10000, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                return component.getCount() == SampleFeed.ENTRIES_IN_RSS_FEED;
            }
View Full Code Here

    }
   
    private void assertAttachmentWasSaved()
    {
        Prober prober = new PollingProber(10000, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                // FIXME DZ: don't know why these are empty, so just compare the saved email
                // file to the expected content
View Full Code Here

        assertFalse(job.wasRun);

        scheduler.schedule();

        pollingProber.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return job.wasRun;
View Full Code Here

            {
                fail("retry template should be executed");
            }

            Prober prober = new PollingProber(100, 1);
            prober.check(new Probe()
            {
                public boolean isSatisfied()
                {
                    try
                    {
View Full Code Here

        MuleMessage response = client.send("http://localhost:" + port.getValue(), TEST_MESSAGE, null);
        assertThat(response.getPayloadAsString(), equalTo(TEST_MESSAGE));

        muleContext.dispose();

        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                for (Thread thread : Thread.getAllStackTraces().keySet())
View Full Code Here

    }

    private void assertEventDispatched()
    {
        Prober prober = new PollingProber();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return MyMessageDispatcherFactory.dispatcher != null && MyMessageDispatcherFactory.dispatcher.dispatchedEvent;
View Full Code Here

    }

    private void assertEventSent()
    {
        Prober prober = new PollingProber();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return MyMessageDispatcherFactory.dispatcher != null && MyMessageDispatcherFactory.dispatcher.sentEvent;
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.