public class ThreadedTest
extends java.lang.Object
implements test.threadedTest.ThreadFinishedListener
| Modifier and Type | Field and Description |
|---|---|
private static int |
finished
Stores the number of finished threads.
|
private static test.threadedTest.Runnable1 |
r1
Stores the first runnable.
|
private static test.threadedTest.Runnable2 |
r2
Stores the second runnable.
|
private static test.threadedTest.Runnable2 |
r3
Stores the third runnable.
|
| Modifier | Constructor and Description |
|---|---|
private |
ThreadedTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
assertChain(test.testing.MonitoringGroupValue value,
boolean includeOuter)
Asserts a chain of values among the monitoring groups.
|
static void |
asserts()
The automated tests using assert statements.
|
private static void |
assertZero(test.testing.MonitoringGroupValue value)
Asserts the value 0 for all monitoring groups.
|
private static void |
execute()
Executes the test.
|
void |
finished()
To be called when a thread finishes.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
private static int finished
private static test.threadedTest.Runnable1 r1
private static test.threadedTest.Runnable2 r2
private static test.threadedTest.Runnable2 r3
private ThreadedTest()
public void finished()
finished in interface test.threadedTest.ThreadFinishedListenerprivate static void execute()
public static void main(java.lang.String[] args)
args - ignoredprivate static void assertChain(test.testing.MonitoringGroupValue value,
boolean includeOuter)
value - the value to considerincludeOuter - include the outer groupprivate static void assertZero(test.testing.MonitoringGroupValue value)
value - the value to testpublic static void asserts()
EndSystem
annotation.