public void stop() throws LifecycleException { JUnitIntegrationTestCase.wasCalled("stop"); }
public void start() throws LifecycleException { JUnitIntegrationTestCase.wasCalled("start"); }
public void setup(TestContainerConfiguration configuration) { JUnitIntegrationTestCase.wasCalled("setup"); }
public void undeploy(Archive<?> deployment) throws DeploymentException { JUnitIntegrationTestCase.wasCalled("undeploy"); if(numberOfTimesDeployed == 1) { throw new RuntimeException("undeploy"); } } }
@Before public void before() { wasCalled("before"); }
@AfterClass public static void afterClass() { wasCalled("afterClass"); }
public ProtocolMetaData deploy(Archive<?> deployment) throws DeploymentException { numberOfTimesDeployed++; JUnitIntegrationTestCase.wasCalled("deploy"); if(numberOfTimesDeployed == 1) { throw new RuntimeException("deploy"); } return new ProtocolMetaData(); }
@BeforeClass public static void beforeClass() { wasCalled("beforeClass"); }
@After public void after() { wasCalled("after"); }
@Test @OperateOnDeployment("test") public void shouldBeInvoked() throws Exception { wasCalled("shouldBeInvoked"); } }