public interface ExamSystem
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears up resources taken by system (like temporary files)
|
String |
createID(String purposeText)
Exam relies on uniquely used identifiers per system.
|
TestProbeBuilder |
createProbe()
New Probe creator using this systems "caches".
|
ExamSystem |
fork(Option[] options) |
File |
getConfigFolder() |
<T extends Option> |
getOptions(Class<T> optionType)
Getting options of this "system".
|
<T extends Option> |
getSingleOption(Class<T> optionType)
A shortcut to
getOptions(Class) when expecting a single value. |
File |
getTempFolder()
Each call to this method might create a new folder that is being cleared on clear().
|
RelativeTimeout |
getTimeout() |
<T extends Option> T getSingleOption(Class<T> optionType)
getOptions(Class) when expecting a single value.T - option typeoptionType - type of option to be retrieved.<T extends Option> T[] getOptions(Class<T> optionType)
T - option typeoptionType - type of option to be retrieved.ExamSystem fork(Option[] options)
options - options to be used additionally in this forkExamSystem instance (new instance). The parent ExamSysten (the one
you called fork on) will notice and take care to bring down forked instances on
cleanup (for example).File getConfigFolder()
File getTempFolder()
RelativeTimeout getTimeout()
TestProbeBuilder createProbe() throws IOException
TestProbeBuilder that can be used to create the actual probe.IOException - in case of an IO problem.String createID(String purposeText)
purposeText - Human readable (short) text that can be used to backtrack the created identifier
(for debugging and logging purposes)void clear()
Copyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.