public static class TestContainer.Runner extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TestContainer.Runner.Runnable |
Constructor and Description |
---|
Runner(List<URL> beansXml,
List<Class<?>> classes) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Bootstrap and shutdown the container.
|
void |
run(TestContainer.Runner.Runnable runnable)
Bootstrap and shutdown the container.
|
void |
runAndExpect(Exception expected)
Bootstrap and shutdown the container If the expected exception must be
thrown (including message).
|
void |
runAndExpect(TestContainer.Runner.Runnable runnable,
Exception expected)
Bootstrap and shutdown the container.
|
public void run(TestContainer.Runner.Runnable runnable) throws Exception
runnable
- a TestContainer.Runner.Runnable
to be called whilst the container is
activeException
public void runAndExpect(Exception expected)
AssertionError
- if the exception that was expected is not
thrown.public void runAndExpect(TestContainer.Runner.Runnable runnable, Exception expected)
runnable
- a TestContainer.Runner.Runnable
to be called whilst the container is
activeAssertionError
- if the exception that was expected is not
thrown.Copyright © 2017 JBoss by Red Hat. All rights reserved.