--- junitperf-1.9.1/src/com/clarkware/junitperf/LoadTest.java 2004-12-30 09:05:00.000000000 +0100
+++ junitperf-1.9.1/src/com/clarkware/junitperf/LoadTest.java 2017-09-08 10:52:12.526400232 +0200
@@ -16,18 +16,20 @@
* For example, to create a load test of 10 concurrent users
* with each user running ExampleTest
once and
* all users started simultaneously, use:
+ *
*+ ** Test loadTest = new LoadTest(new TestSuite(ExampleTest.class), 10); **
* or, to load test a single test method, use: + *
**- * ** Test loadTest = new LoadTest(new ExampleTest("testSomething"), 10); **
* The load can be ramped by specifying a pluggable
* Timer
instance which prescribes the delay
@@ -41,13 +43,13 @@
* For example, to create a load test of 10 concurrent users
* with each user running ExampleTest.testSomething()
once and
* with a one second delay between the addition of users, use:
+ *
*- * ** Timer timer = new ConstantTimer(1000); * Test loadTest = new LoadTest(new ExampleTest("testSomething"), 10, timer); **
* In order to simulate each concurrent user running a test for a
* specified number of iterations, a LoadTest
can be
@@ -60,6 +62,7 @@
* For example, to create a load test of 10 concurrent users
* with each user running ExampleTest.testSomething()
for 20 iterations,
* and with a one second delay between the addition of users, use:
+ *
*+ ** Timer timer = new ConstantTimer(1000); @@ -67,23 +70,26 @@ * Test loadTest = new LoadTest(repeatedTest, 10, timer); **
* or, alternatively, use: + *
**+ ** Timer timer = new ConstantTimer(1000); * Test loadTest = new LoadTest(new ExampleTest("testSomething"), 10, 20, timer); **
* A LoadTest
can be decorated as a TimedTest
* to test the elapsed time of the load test. For example, to decorate
* the load test constructed above as a timed test with a maximum elapsed
* time of 2 seconds, use:
+ *
*- * ** Test timedTest = new TimedTest(loadTest, 2000); **
* By default, a LoadTest
does not enforce test
* atomicity (as defined in transaction processing) if its decorated
--- junitperf-1.9.1/src/com/clarkware/junitperf/TestFactory.java 2004-12-30 09:05:00.000000000 +0100
+++ junitperf-1.9.1/src/com/clarkware/junitperf/TestFactory.java 2017-09-08 10:49:39.705002745 +0200
@@ -22,6 +22,7 @@
*
* A typical usage scenario is as follows: + *
**- * ** Test factory = new TestFactory(YourTestCase.class); @@ -29,7 +30,6 @@ * ... **
* Of course, static variables cannot be protected externally, so tests
* intended to be run in a multi-threaded environment should ensure
--- junitperf-1.9.1/src/com/clarkware/junitperf/TestMethodFactory.java 2004-12-30 09:05:00.000000000 +0100
+++ junitperf-1.9.1/src/com/clarkware/junitperf/TestMethodFactory.java 2017-09-08 10:55:05.061911055 +0200
@@ -13,6 +13,7 @@
* a specific test method of a TestCase
.
*
* A typical usage scenario is as follows: + *
**- * * * @author Mike Clark * @author Clarkware Consulting, Inc. --- junitperf-1.9.1/src/com/clarkware/junitperf/TimedTest.java 2004-12-30 09:05:00.000000000 +0100 +++ junitperf-1.9.1/src/com/clarkware/junitperf/TimedTest.java 2017-09-08 10:54:30.458402586 +0200 @@ -41,12 +41,12 @@ * Alternatively, to decorate the* Test factory = new TestMethodFactory(YourTestCase.class, "testSomething"); @@ -20,7 +21,6 @@ * ... **
ExampleTest.testSomething()
* test as a TimedTest
that fails immediately when
* the maximum elapsed time of 2 seconds is exceeded, use:
+ *
* *- * * * @author Mike Clark * @author Clarkware Consulting, Inc.* Test timedTest = new TimedTest(new ExampleTest("testSomething"), 2000, false); **