public class TimerTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_TIMER_START_FINISH
Defines the recorder identification for the first timer.
|
static java.lang.String |
ID_TIMER_START_FINISH2
Defines the recorder identification for the second timer.
|
private static java.lang.String |
recIdRestartStopResumeOneStep
Stores the synthetic recorder id for the third part of the test -
restart, stop and resume a timer in one step (method).
|
private static java.lang.String |
recIdRestartStopResumeTwoSteps
Stores the synthetic recorder id for the third part of the test -
restart, stop and resume a timer in two steps (methods).
|
private static java.lang.String |
recIdStartStopOneStep
Stores the synthetic recorder id for the first part of the test - start
and stop a timer in one step (method).
|
private static java.lang.String |
recIdStartStopTwoSteps
Stores the synthetic recorder id for the second part of the test - start
and stop a timer in two steps (methods).
|
private static long |
timeRestartStopResumeOneStep
Stores the time for the third part of the test - restart, stop and
resume a timer in one step (method).
|
private static long |
timeRestartStopResumeTwoSteps
Stores the time for the third part of the test - restart, stop and
resume a timer in two steps (methods).
|
private static long |
timeStartStopOneStep
Stores the time for the first part of the test - start and stop a timer
in one step (method).
|
private static long |
timeStartStopTwoSteps
Stores the time for the second part of the test - start and stop a timer
in two steps (methods).
|
private static long |
TOLERANCE
Tolerance when comparing received values (here in milliseconds).
|
private static long |
WAIT_TIME
Stores the time for waiting in order to check the timer.
|
private static long |
WAIT_TIME_2
Stores a fragment of
WAIT_TIME (half) in order to test
steps / timer states. |
| Modifier | Constructor and Description |
|---|---|
private |
TimerTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
asserts()
The automated tests using assert statements.
|
private static void |
continueProcessing()
Continues processing and thus resumes the timer (override default
instrumentation position, would be beginning).
|
private static void |
endProcessing()
Finishes processing and the timer.
|
private static void |
execute()
Executes the test.
|
private static void |
interruptAndContinueProcessing()
Interrupts and continues processing and thus stops and resumes the timer.
|
private static void |
interruptProcessing()
Interrupts processing and thus stops the timer (override default
instrumentation position, would be end).
|
static void |
main(java.lang.String[] args)
Starts the test.
|
private static void |
startProcessing()
Starts processing and the timer.
|
private static void |
timerInOneMethod()
Some processing in one method.
|
public static final java.lang.String ID_TIMER_START_FINISH
public static final java.lang.String ID_TIMER_START_FINISH2
private static final long WAIT_TIME
private static final long WAIT_TIME_2
WAIT_TIME (half) in order to test
steps / timer states.private static final long TOLERANCE
private static long timeStartStopOneStep
private static java.lang.String recIdStartStopOneStep
private static long timeStartStopTwoSteps
private static java.lang.String recIdStartStopTwoSteps
private static long timeRestartStopResumeTwoSteps
private static java.lang.String recIdRestartStopResumeTwoSteps
private static long timeRestartStopResumeOneStep
private static java.lang.String recIdRestartStopResumeOneStep
private TimerTest()
private static void timerInOneMethod()
private static void startProcessing()
private static void endProcessing()
private static void interruptAndContinueProcessing()
private static void interruptProcessing()
private static void continueProcessing()
private static void execute()
public static void main(java.lang.String[] args)
args - command line arguments (ignored)public static void asserts()
EndSystem
annotation.