Package test.integration.util

Examples of test.integration.util.DependencyMatcher


      queueInputLines("", "", "", "", "", "");
      getShell().execute("java new-class --named Bean --package com.test");
      getShell().execute("arquillian setup --containerName GLASSFISH_EMBEDDED_3.1 --testFramework testng");
      getShell().execute("arquillian create-test --class com.test.Bean");

      assertThat(mavenCoreFacet.getPOM().getDependencies(), hasItem(new DependencyMatcher("testng")));
      assertThat(mavenCoreFacet.getPOM().getDependencies(), hasItem(new DependencyMatcher("arquillian-testng-container")));

      final JavaSource<?> testClass = project.getFacet(JavaSourceFacet.class)
                                             .getTestJavaResource("com.test.BeanTest")
                                             .getJavaSource();
      assertTrue("@Test TestNG should be imported", testClass.hasImport("org.testng.annotations.Test"));
View Full Code Here


      {
         assertThat(profile.getDependencies(), hasItem(dependency));
      }

      Model pom = mavenCoreFacet.getPOM();
      DependencyMatcher arqBom = new DependencyMatcher("arquillian-bom");

      assertThat("Verify arquillian:bom was added to DependencyManagement ",
            pom.getDependencyManagement().getDependencies(), hasItem(arqBom));

      assertNotNull("Verify that the plugin use a version property for arquillian core",
View Full Code Here

   @Test
   public void installOpenEJBContainer() throws Exception
   {
      installContainer("openejb-embedded-3.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-openejb-embedded-3.1"),
                  new DependencyMatcher("openejb-core")));
   }
View Full Code Here

   @Test
   public void installOpenWebBeansContainer() throws Exception
   {
      installContainer("openwebbeans-embedded-1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-openwebbeans-embedded-1"),
                  new DependencyMatcher("openwebbeans-impl")));
   }
View Full Code Here

   @Test
   public void installGlassfishEmbeddedContainer() throws Exception
   {
      installContainer("glassfish-embedded-3.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-glassfish-embedded-3.1"),
                  new DependencyMatcher("glassfish-embedded-all")));
   }
View Full Code Here

   @Test
   public void installGlassfishManagedContainer() throws Exception
   {
      installContainer("glassfish-managed-3.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-glassfish-managed-3.1")));
   }
View Full Code Here

   @Test
   public void installGlassfishRemoteContainer() throws Exception
   {
      installContainer("glassfish-remote-3.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-glassfish-remote-3.1")));
   }
View Full Code Here

   @Test
   public void installJBossAS51ManagedContainer() throws Exception
   {
      installContainer("jbossas-managed-5.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-jbossas-managed-5.1")));
   }
View Full Code Here

   @Test
   public void installJBossAS51RemoteContainer() throws Exception
   {
      installContainer("jbossas-remote-5.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-jbossas-remote-5.1")));
   }
View Full Code Here

   @Test
   public void installJBossAS5RemoteContainer() throws Exception
   {
      installContainer("jbossas-remote-5",
            Arrays.asList(
                  new DependencyMatcher("arquillian-jbossas-remote-5")));
   }
View Full Code Here

TOP

Related Classes of test.integration.util.DependencyMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.