Examples of Prober


Examples of org.mule.tck.probe.Prober

    {
        prePopulateObjectStore();

        muleContext.start();

        Prober prober = new PollingProber(RECEIVE_TIMEOUT, 50);

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

Examples of org.mule.tck.probe.Prober

        assertUndeploymentSuccess(deploymentListener, appName);
    }

    private void assertDeploymentFailure(final DeploymentListener listener, final String appName)
    {
        Prober prober = new PollingProber(DEPLOYMENT_TIMEOUT, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                try
                {
View Full Code Here

Examples of org.mule.tck.probe.Prober

        });
    }

    private void assertDeploymentSuccess(final DeploymentListener listener, final String appName)
    {
        Prober prober = new PollingProber(DEPLOYMENT_TIMEOUT, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                try
                {
View Full Code Here

Examples of org.mule.tck.probe.Prober

        });
    }

    public void assertUndeploymentSuccess(final DeploymentListener listener, final String appName)
    {
        Prober prober = new PollingProber(DEPLOYMENT_TIMEOUT, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                try
                {
View Full Code Here

Examples of org.mule.tck.probe.Prober

            assertTrue(fileReceiveLatch.await(30, TimeUnit.SECONDS));

            // the output file should exist now
            // check that the files with the correct output pattern were generated
            Prober prober = new PollingProber(2000, 50);

            prober.check(new Probe()
            {
                @Override
                public boolean isSatisfied()
                {
                  return FileUtils.newFile(myDir, myFileName1).exists() && FileUtils.newFile(myDir2, myFileName2).exists();
View Full Code Here

Examples of org.mule.tck.probe.Prober

    public void testAsynch() throws Exception
    {
        sendMessage("vm://testAsynch");

        file = new File(FILE_PATH);
        Prober prober = new PollingProber(10000, 2000);
        prober.check(new FileCompleteProbe());
    }
View Full Code Here

Examples of org.mule.tck.probe.Prober

    {
        LocalMuleClient client = muleContext.getClient();
        client.dispatch("vm://testInput", TEST_MESSAGE, null);
        client.dispatch("vm://testInput", TEST_MESSAGE, null);

        Prober prober = new PollingProber(1000, 10);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return count == 2;
View Full Code Here

Examples of org.mule.tck.probe.Prober

        MuleClient client = muleContext.getClient();
        client.dispatch("vm://in5", "test", null);

        assertExceptionMessage(client.request("vm://out5", RECEIVE_TIMEOUT));

        Prober prober = new PollingProber(5000, 100);
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
                return !service.getLifecycleState().isStarted();
View Full Code Here

Examples of org.mule.tck.probe.Prober

public class DeploymentTestUtils
{

    public static void assertFileExists(File pluginsDir, String filePath)
    {
        Prober prober = new PollingProber(5000, 100);
        File marker = new File(pluginsDir, filePath);
        prober.check(new FileExists(marker));
    }
View Full Code Here

Examples of org.mule.tck.probe.Prober

    {
        doTest("evict_one", PoolingProfile.WHEN_EXHAUSTED_WAIT,
               PoolingProfile.INITIALISE_ALL, 1, 1, 0);


        Prober prober = new PollingProber(5000, 50);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                return evicted;
            }
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.