public class PaxExamRuntime extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.ops4j.pax.exam.TestContainer |
createContainer(org.ops4j.pax.exam.ExamSystem system)
Convenience factory when just dealing with one container (intentionally).
|
static org.ops4j.pax.exam.TestContainer |
createContainer(String configurationClassName)
Creates and starts a test container using options from a configuration class.
|
static org.ops4j.pax.exam.ExamSystem |
createServerSystem(org.ops4j.pax.exam.Option... options) |
static org.ops4j.pax.exam.ExamSystem |
createTestSystem(org.ops4j.pax.exam.Option... options) |
static org.ops4j.pax.exam.TestContainerFactory |
getTestContainerFactory()
Discovers the regression container.
|
static org.ops4j.pax.exam.TestContainerFactory |
getTestContainerFactory(Class<? extends org.ops4j.pax.exam.TestContainerFactory> select)
Select yourself
|
static void |
main(String[] args)
Runs a standalone container in server mode which can be terminated gracefully by sending text
commands over a socket.
|
public static org.ops4j.pax.exam.TestContainerFactory getTestContainerFactory()
public static org.ops4j.pax.exam.TestContainer createContainer(org.ops4j.pax.exam.ExamSystem system)
system - to be used.public static org.ops4j.pax.exam.TestContainer createContainer(String configurationClassName) throws Exception
configurationClassName - fully qualified class name of a configuration class.Exception - when options cannot be parsedpublic static org.ops4j.pax.exam.ExamSystem createTestSystem(org.ops4j.pax.exam.Option... options)
throws IOException
IOExceptionpublic static org.ops4j.pax.exam.ExamSystem createServerSystem(org.ops4j.pax.exam.Option... options)
throws IOException
IOExceptionpublic static org.ops4j.pax.exam.TestContainerFactory getTestContainerFactory(Class<? extends org.ops4j.pax.exam.TestContainerFactory> select)
select - the exact implementation if you dont want to rely on commons util discovery or
change different containers in a single project.public static void main(String[] args) throws Exception
This class must be invoked with two arguments:
@Configuration class
args - command line argumentException - when options cannot be parsedCopyright © 2006–2018 OPS4J - Open Participation Software for Java. All rights reserved.