public class ValueTest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
ValueTest.ExternalLibDummy
Represents an external class which cannot be annotated.
|
private class |
ValueTest.MovingAverage
Defines a class for incrementally updating values.
|
| Modifier and Type | Field and Description |
|---|---|
private static int |
count
Stores the count of values (to validate the average).
|
private static java.lang.String |
ID_AVERAGE
Stores the recorder identification for the average value context.
|
private static java.lang.String |
ID_COUNT_POSTFIX
Stores the recorder identification postfix for the count attribute (in
context).
|
private static java.lang.String |
ID_DUMMY
Stores the recorder identification for the dummy value.
|
static double |
MY_DUMMY_VALUE
Stores the fixed value to be set to the dummy attribute.
|
private ValueTest.MovingAverage |
myAverage
Stores the reference to the moving average value.
|
private static ValueTest.ExternalLibDummy |
myDummy
Stores the reference to the external lib.
|
private static double |
sum
Stores the sum of values (to validate the average).
|
| Modifier | Constructor and Description |
|---|---|
private |
ValueTest()
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 |
execute()
Executes the test.
|
static void |
main(java.lang.String[] args)
Starts the tests.
|
private static void |
testExternal()
Simulates a call to the external unannotated class and notifies about
a value change.
|
public static final double MY_DUMMY_VALUE
private static final java.lang.String ID_AVERAGE
private static final java.lang.String ID_DUMMY
private static final java.lang.String ID_COUNT_POSTFIX
private static int count
private static double sum
private static ValueTest.ExternalLibDummy myDummy
private ValueTest.MovingAverage myAverage
private ValueTest()
private static void testExternal()
private static void execute()
public static void main(java.lang.String[] args)
args - ignoredpublic static void asserts()
EndSystem
annotation.