Package org.mule.tck.probe

Examples of org.mule.tck.probe.Probe


        }
    }

    private void assertMonitorsCount(final int expectedValue)
    {
        new PollingProber(POLLING_TIMEOUT, POLLING_DELAY).check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return assertMonitors(expectedValue) && assertSchedulers(expectedValue);
View Full Code Here


            }
        };
        t.start();

        // Wait until "t" has begun to stop.
        new PollingProber(10000, 100).check(new Probe()
        {
            public boolean isSatisfied()
            {
                return (receiver.isStopping() || receiver.isStopped());
            }
View Full Code Here

        assertFalse(job.wasRun);

        scheduler.schedule();

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

     * Checks that the polls where executed only once.
     */
    @Test
    public void test() throws Exception
    {
        workingPollProber.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return (foo.size() > 2 && checkCollectionValues(foo, "foo")) &&
View Full Code Here

    @Test
    public void validateNotificationsAreSent() throws InterruptedException
    {
        final MyListener listener = new MyListener();
        muleContext.getNotificationManager().addListener(listener);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return listener.getNotifications().size() > 1 && "pollName".equals(listener.getNotifications().get(0));
View Full Code Here

        }

        //Mule failed to start, so go ahead and dispose it(Mule will not let us call stop at this point)
        muleContext.dispose();

        new PollingProber(10000, 100).check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                List<String> currentThreads = collectThreadNames();
View Full Code Here

        final String payload = RandomStringUtils.randomAlphanumeric(20);
        final int expectedCounterExecutions = 4;
        final int expectedCounterInExceptionStrategyExecutions = 1;
        Flow flow = (Flow) getFlowConstruct("asynchronous-using-threading-profile");
        flow.process(getTestEvent(payload));
        new PollingProber(10000, 100).check(new Probe()
        {
            private int executionOfCountInUntilSuccessful;
            private int executionOfCountInExceptionStrategy;

            @Override
View Full Code Here

        muleContext.start();

        Prober prober = new PollingProber(RECEIVE_TIMEOUT, 50);

        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                return processedMessageCounter == 1;
            }
View Full Code Here

    @Test(expected = AssertionError.class)
    public void watermarkWithAsyncProcessing() throws Exception
    {
        executePollOf("watermarkWithAsyncProcessing");

        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return foo.contains(RESULT_OF_UPDATE_EXPRESSION);
View Full Code Here

    @Test(expected = AssertionError.class)
    public void watermarkWithNullDefaultExpression() throws Exception
    {
        executePollOf("usingWatermarkFlowWithNullValue");
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return !foo.isEmpty();
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.