Package org.apache.qpid.junit.extensions

Examples of org.apache.qpid.junit.extensions.TimingController.completeTest()


        int numReplies = pingClient.pingAndWaitForReply(msg, numPings, timeout, null);

        // Check that all the replies were received and log a fail if they were not.
        if (numReplies < numPings)
        {
            tc.completeTest(false, 0);
        }

        // Remove the chained message listener from the ping producer.
        pingClient.removeChainedMessageListener();
View Full Code Here


                    int receivedInBatch = ((expected - remainingCount) < _batchSize) ? (expected % _batchSize) : _batchSize;

                    // Register a test result for the correlation id.
                    try
                    {
                        tc.completeTest(true, receivedInBatch, latency);
                    }
                    catch (InterruptedException e)
                    {
                        // Ignore this. It means the test runner wants to stop as soon as possible.
                        _logger.warn("Got InterruptedException.", e);
View Full Code Here

                    // Register a test result for the correlation id.
                    try
                    {
                        // Record the total latency for the batch.
                        // if batchSize=1 then this will just be the message latency
                        tc.completeTest(true, receivedInBatch, null, _batchSize == 1 ? latency : _batchLatency);
                        // Reset latency
                        _batchLatency = 0;
                    }
                    catch (InterruptedException e)
                    {
View Full Code Here

                    int receivedInBatch = ((expected - remainingCount) < _batchSize) ? (expected % _batchSize) : _batchSize;

                    // Register a test result for the correlation id.
                    try
                    {
                        tc.completeTest(true, receivedInBatch);
                    }
                    catch (InterruptedException e)
                    {
                        // Ignore this. It means the test runner wants to stop as soon as possible.
                        _logger.warn("Got InterruptedException.", e);
View Full Code Here

                    // Register a test result for the correlation id.
                    try
                    {
                        // Record the total latency for the batch.
                        // if batchSize=1 then this will just be the message latency
                        tc.completeTest(true, receivedInBatch, null, _batchSize == 1 ? latency : _batchLatency);
                        // Reset latency
                        _batchLatency = 0;
                    }
                    catch (InterruptedException e)
                    {
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.