Want more features on Pastebin? Sign Up, it's FREE!
Guest

Arquillian DSGs idea

By: a guest on Apr 19th, 2011  |  syntax: Java  |  size: 0.75 KB  |  views: 107  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @MavenDeployments(@MavenDeployment(value = "org.jboss.weld.examples.jsf:weld-jsf-login:war:1.1.1.Final",
  2.             settings = "src/test/resources/settings.xml", priority=@Priority("${arq.maven.deployment.priority}", produces=@Produces("foo"))))
  3. @RunWith(Arquillian.class)
  4. public class WarDeploymentTestCase
  5. {
  6.  
  7.    /**
  8.     * Creates a WAR of a Weld based application using ShrinkWrap
  9.     *
  10.     * @return WebArchive to be tested
  11.     */
  12.    @Deployment
  13.    @Priority("${arq.microdeployment.pririty}")
  14.    @ProducesDeployment("foo")
  15.    public static WebArchive createDeployment()
  16.    {
  17.       //throw new AssertionError("Should be using different Deployment Scenario");
  18.    }
  19.  
  20.    @Test
  21.    public void archiveWasDeployed()
  22.    {
  23.       ...
  24.    }
  25.  
  26. }
clone this paste RAW Paste Data