Class TestContainer.Runner
- java.lang.Object
-
- org.jboss.arquillian.container.weld.embedded.mock.TestContainer.Runner
-
- Enclosing class:
- TestContainer
public static class TestContainer.Runner extends Object
A further wrapper over TestContainer, allowing a test to be run.- Author:
- Pete Muir
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTestContainer.Runner.Runnable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Bootstrap and shutdown the container.voidrun(TestContainer.Runner.Runnable runnable)Bootstrap and shutdown the container.voidrunAndExpect(Exception expected)Bootstrap and shutdown the container If the expected exception must be thrown (including message).voidrunAndExpect(TestContainer.Runner.Runnable runnable, Exception expected)Bootstrap and shutdown the container.
-
-
-
Method Detail
-
run
public void run(TestContainer.Runner.Runnable runnable) throws Exception
Bootstrap and shutdown the container.- Parameters:
runnable- aTestContainer.Runner.Runnableto be called whilst the container is active- Throws:
Exception
-
runAndExpect
public void runAndExpect(Exception expected)
Bootstrap and shutdown the container If the expected exception must be thrown (including message).- Throws:
AssertionError- if the exception that was expected is not thrown.
-
runAndExpect
public void runAndExpect(TestContainer.Runner.Runnable runnable, Exception expected)
Bootstrap and shutdown the container. If the expected exception must be thrown (including message).- Parameters:
runnable- aTestContainer.Runner.Runnableto be called whilst the container is active- Throws:
AssertionError- if the exception that was expected is not thrown.
-
-