public class DefaultExamSystem extends Object implements org.ops4j.pax.exam.ExamSystem
ExamSystem.
It takes care of options (including implicit defaults), temporary folders (and their cleanup) and
cross cutting parameters that are frequently used like "timeout" values.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears up resources taken by system (like temporary files).
|
static org.ops4j.pax.exam.ExamSystem |
create(org.ops4j.pax.exam.Option[] options)
Creates a fresh ExamSystem.
|
String |
createID(String purposeText) |
org.ops4j.pax.exam.TestProbeBuilder |
createProbe() |
static File |
createTempDir() |
boolean |
equals(Object obj) |
org.ops4j.pax.exam.ExamSystem |
fork(org.ops4j.pax.exam.Option[] options)
Create a new system based on *this*.
|
File |
getConfigFolder() |
org.ops4j.pax.exam.options.WarProbeOption |
getLatestWarProbeOption() |
<T extends org.ops4j.pax.exam.Option> |
getOptions(Class<T> optionType) |
<T extends org.ops4j.pax.exam.Option> |
getSingleOption(Class<T> optionType)
Helper method for single options.
|
<T extends org.ops4j.pax.exam.Option> |
getSingleOption(Class<T> optionType,
org.ops4j.pax.exam.Option[] options) |
File |
getTempFolder() |
org.ops4j.pax.exam.RelativeTimeout |
getTimeout() |
int |
hashCode() |
String |
toString() |
public static org.ops4j.pax.exam.ExamSystem create(org.ops4j.pax.exam.Option[] options)
throws IOException
options - options to be used to define the new system.IOException - in case of an instantiation problem. (IO related)public org.ops4j.pax.exam.ExamSystem fork(org.ops4j.pax.exam.Option[] options)
fork in interface org.ops4j.pax.exam.ExamSystempublic <T extends org.ops4j.pax.exam.Option> T getSingleOption(Class<T> optionType)
getSingleOption in interface org.ops4j.pax.exam.ExamSystempublic <T extends org.ops4j.pax.exam.Option> T getSingleOption(Class<T> optionType, org.ops4j.pax.exam.Option[] options)
public <T extends org.ops4j.pax.exam.Option> T[] getOptions(Class<T> optionType)
getOptions in interface org.ops4j.pax.exam.ExamSystempublic File getConfigFolder()
getConfigFolder in interface org.ops4j.pax.exam.ExamSystempublic File getTempFolder()
getTempFolder in interface org.ops4j.pax.exam.ExamSystempublic org.ops4j.pax.exam.RelativeTimeout getTimeout()
getTimeout in interface org.ops4j.pax.exam.ExamSystempublic void clear()
clear in interface org.ops4j.pax.exam.ExamSystempublic org.ops4j.pax.exam.TestProbeBuilder createProbe()
throws IOException
createProbe in interface org.ops4j.pax.exam.ExamSystemIOExceptionpublic String createID(String purposeText)
createID in interface org.ops4j.pax.exam.ExamSystempublic static File createTempDir()
public org.ops4j.pax.exam.options.WarProbeOption getLatestWarProbeOption()
Copyright © 2006–2017 OPS4J - Open Participation Software for Java. All rights reserved.