Examples of DependencyMatcher


Examples of com.github.ferstl.maven.pomenforcers.model.functions.DependencyMatcher

  protected abstract void reportError(ErrorReport report, Collection<DependencyModel> sortedDependencies);

  @Override
  protected final void doEnforce(ErrorReport report) {
    MavenProject mavenProject = EnforcerRuleUtils.getMavenProject(getHelper());
    DependencyMatcher dependencyMatcher = new DependencyMatcher(getHelper());

    BiMap<DependencyModel, DependencyModel> matchedDependencies =
        dependencyMatcher.match(getMavenDependencies(mavenProject), getDeclaredDependencies());

    Set<DependencyModel> resolvedDependencies = matchedDependencies.keySet();
    if (!this.artifactOrdering.isOrdered(resolvedDependencies)) {
      reportError(report, this.artifactOrdering.immutableSortedCopy(resolvedDependencies));
    }
View Full Code Here

Examples of test.integration.util.DependencyMatcher

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

Examples of test.integration.util.DependencyMatcher

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

Examples of test.integration.util.DependencyMatcher

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

Examples of test.integration.util.DependencyMatcher

   @Test
   public void installJBossAS7ManagedContainer() throws Exception
   {
      installContainer("jbossas-managed-7",
            Arrays.asList(
                  new DependencyMatcher("jboss-as-arquillian-container-managed")));
   }
View Full Code Here

Examples of test.integration.util.DependencyMatcher

   @Test
   public void installJBossAS7RemoteContainer() throws Exception
   {
      installContainer("jbossas-remote-7",
            Arrays.asList(
                  new DependencyMatcher("jboss-as-arquillian-container-remote")));
   }
View Full Code Here

Examples of test.integration.util.DependencyMatcher

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

Examples of test.integration.util.DependencyMatcher

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

Examples of test.integration.util.DependencyMatcher

   @Test
   public void installJetty6EmbeddedContainer() throws Exception
   {
      installContainer("jetty-embedded-6.1",
            Arrays.asList(
                  new DependencyMatcher("arquillian-jetty-embedded-6.1"),
                  new DependencyMatcher("jetty")));
   }
View Full Code Here

Examples of test.integration.util.DependencyMatcher

   @Test
   public void installJetty7EmbeddedContainer() throws Exception
   {
      installContainer("jetty-embedded-7",
            Arrays.asList(
                  new DependencyMatcher("arquillian-jetty-embedded-7"),
                  new DependencyMatcher("jetty-webapp")));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.