public final class InfrastructureTester
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InfrastructureTester.TestMatcher
Matching results.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DC
Skip this value while comparing results.
|
static double |
DELTA
Tolerance while comparing double values.
|
static int |
SIMULATION_STEPS
Default runs.
|
static int |
STABILITY_STEPS
Check function stability for this number of steps.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Run a test.
|
static void |
multiRunTest(java.lang.String file)
Test the given file.
|
static void |
runTest(java.lang.String file)
Test the given file.
|
static void |
runTest(java.lang.String file,
int exampleRuns,
int stabilitySteps)
Test the given file.
|
static void |
runTest(java.lang.String file,
int simulationSteps,
int stabilitySteps,
java.lang.Object expectedValue)
Test a given property.
|
static void |
runTest(java.lang.String file,
java.lang.Object expectedValue)
Test a given property.
|
public static final java.lang.String DC
public static final double DELTA
public static final int SIMULATION_STEPS
public static final int STABILITY_STEPS
public static void main(java.lang.String[] args)
throws java.lang.InterruptedException,
java.io.IOException
args - parametersjava.lang.InterruptedException - if interruptedjava.io.IOException - file not foundpublic static void multiRunTest(java.lang.String file)
file - file to bestedjava.io.IOException - IOexceptionjava.lang.InterruptedException - InterruptedExceptionpublic static void runTest(java.lang.String file)
file - file to bestedjava.io.IOException - IOexceptionjava.lang.InterruptedException - InterruptedExceptionpublic static void runTest(java.lang.String file,
int exampleRuns,
int stabilitySteps)
file - file to bestedexampleRuns - number of runsstabilitySteps - check function stability for this number of stepsjava.io.IOException - IOexceptionjava.lang.InterruptedException - InterruptedExceptionpublic static void runTest(java.lang.String file,
int simulationSteps,
int stabilitySteps,
java.lang.Object expectedValue)
file - file to bestedsimulationSteps - number of runsstabilitySteps - check function stability for this number of stepsexpectedValue - value to be checkedjava.io.IOException - IOexceptionjava.lang.InterruptedException - InterruptedExceptionpublic static void runTest(java.lang.String file,
java.lang.Object expectedValue)
throws java.lang.InterruptedException,
java.io.IOException
file - file to bestedexpectedValue - value to be checkedjava.io.IOException - IOexceptionjava.lang.InterruptedException - InterruptedException