diff options
| author | Rupert Smith <rupertlssmith@apache.org> | 2007-11-26 11:38:27 +0000 |
|---|---|---|
| committer | Rupert Smith <rupertlssmith@apache.org> | 2007-11-26 11:38:27 +0000 |
| commit | b9c951723fe5081ea2611e7c04ee8d2df6a03205 (patch) | |
| tree | 3c03d80e6b1ec4fff1f7268930deadb4f60c53dc /java/perftests/src | |
| parent | a1391b5724829e4268faf4de60625b2d05e86288 (diff) | |
| download | qpid-python-b9c951723fe5081ea2611e7c04ee8d2df6a03205.tar.gz | |
Updated test framework to seperate JMS and AMQP specific test cases. Added configurable test decorators so that in vm connection can be injected at run time.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@598233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/perftests/src')
| -rw-r--r-- | java/perftests/src/main/java/org/apache/qpid/test/testcases/MessageThroughputPerf.java (renamed from java/perftests/src/main/java/org/apache/qpid/perftests/QpidTestThroughputPerf.java) | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/java/perftests/src/main/java/org/apache/qpid/perftests/QpidTestThroughputPerf.java b/java/perftests/src/main/java/org/apache/qpid/test/testcases/MessageThroughputPerf.java index 760d1c84a4..887479c032 100644 --- a/java/perftests/src/main/java/org/apache/qpid/perftests/QpidTestThroughputPerf.java +++ b/java/perftests/src/main/java/org/apache/qpid/test/testcases/MessageThroughputPerf.java @@ -18,7 +18,7 @@ * under the License.
*
*/
-package org.apache.qpid.perftests;
+package org.apache.qpid.test.testcases;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -40,9 +40,8 @@ import uk.co.thebadgerset.junit.extensions.util.TestContextProperties; import java.util.LinkedList;
/**
- * QpidTestThroughputPerf runs a test over a {@link Circuit} controlled by the test parameters. It logs timings of
- * the time required to receive samples consisting of batches of messages. As the time samples is taken over a reasonable
- * sized message batch, it measures message throughput.
+ * MessageThroughputPerf runs a test over a {@link Circuit} controlled by the test parameters. It logs timings of
+ * the time required to receive samples consisting of batches of messages.
*
* <p/><table id="crc"><caption>CRC Card</caption>
* <tr><th> Responsibilities <th> Collaborations
@@ -51,11 +50,14 @@ import java.util.LinkedList; *
* @todo Check that all of the messages were sent. Check that the receiving end got the same number of messages as
* the publishing end.
+ *
+ * @todo Set this up to run with zero sized tests. Size zero means send forever. Continuous sending to be interrupted
+ * by completion of the test duration, or shutdown hook when the user presses Ctrl-C.
*/
-public class QpidTestThroughputPerf extends FrameworkBaseCase implements TimingControllerAware, TestThreadAware
+public class MessageThroughputPerf extends FrameworkBaseCase implements TimingControllerAware, TestThreadAware
{
/** Used for debugging. */
- private static final Logger log = Logger.getLogger(QpidTestThroughputPerf.class);
+ private static final Logger log = Logger.getLogger(MessageThroughputPerf.class);
/** Holds the timing controller, used to log test timings from self-timed tests. */
private TimingController timingController;
@@ -68,7 +70,7 @@ public class QpidTestThroughputPerf extends FrameworkBaseCase implements TimingC *
* @param name The test case name.
*/
- public QpidTestThroughputPerf(String name)
+ public MessageThroughputPerf(String name)
{
super(name);
}
@@ -163,7 +165,7 @@ public class QpidTestThroughputPerf extends FrameworkBaseCase implements TimingC // Build a new test suite
TestSuite suite = new TestSuite("Qpid Throughput Performance Tests");
- suite.addTest(new QpidTestThroughputPerf("testThroughput"));
+ suite.addTest(new MessageThroughputPerf("testThroughput"));
return suite;
}
|
