p_tests
Class RandomTest_Paddle
java.lang.Object
p_tests.RandomTest_Paddle
public class RandomTest_Paddle
- extends java.lang.Object
Test class for Paddle
that uses a Random
RNG for simulation purposes.
The RNG can be seeded at the command line, or a default value of 0 can be used.
We use the DateHeader
class to document the date/time of the test execution
Expected Output (using default RNG seed = 0) and NUMBER_OF_TESTS
= 6:
The seed used for the random number generator in the test is 0.
You can override this value by passing an integer value as a main argument parameter, if you so wish.
Execution Date/Time 2011/03/16 11:29:28
Creating a random Paddle 6 times:
Paddle: position = 6, moving = right, is in safe state.
Paddle: position = 7, moving = right, is in safe state.
Paddle: position = 10, moving = left, is in safe state.
Paddle: position = 5, moving = left, is in safe state.
Paddle: position = 6, moving = right, is in safe state.
Paddle: position = 18, moving = left, is in safe state.
- Version:
- 1
- Author:
- J Paul Gibson
- See Also:
JUnit_Paddle
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomTest_Paddle
public RandomTest_Paddle()
main
public static void main(java.lang.String[] args)