Created
April 7, 2011 22:39
-
-
Save aslakknutsen/908934 to your computer and use it in GitHub Desktop.
Before/After
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Arquillian.class) | |
public class BeforeAfterTest { | |
@Deployment(name = "X") @TargetsContainer("A") | |
public static void WebArchive create1() {} | |
@Deployment(name = "Y") @TargetsContainer("B") | |
public static void WebArchive create1() {} | |
// executed incontainer with testInContainerOnContainerA | |
@Before @OperateOnDeployment("X") | |
public void beforeInContainerWhenTestRunAgainstX() {} | |
// executed on client with testAsClientInContextOfDeploymentX | |
@Before @RunAsClient @OperateOnDeployment("X") | |
public void beforeOnClientWhenTestRunAgainstX() {} | |
// executed incontainer with testInContainerOnContainerB | |
@Before @OperateOnDeployment("Y") | |
public void beforeInContainerWhenTestRunAgainstY() {} | |
@Test @OperateOnDeployment("X") | |
public void testInContainerOnContainerA() {} | |
@Test @OperateOnDeployment("Y") | |
public void testInContainerOnContainerB() {} | |
@Test @RunAsClient @OperateOnDeployment("X") | |
public void testAsClientInContextOfDeploymentX() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment