Examples of toCanonicalForm()


Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        try {
            scope = ScopeType.fromScopeType(dependency.getScope());
        } catch (IllegalArgumentException e) {
            // let scope be RUNTIME
            log.log(Level.WARNING, "Invalid scope {0} of dependency {1} will be replaced by <scope>runtime</scope>",
                    new Object[] { dependency.getScope(), coordinate.toCanonicalForm() });
        }

        final MavenDependency result = MavenDependencies.createDependency(coordinate, scope, dependency.isOptional(),
                fromExclusions(dependency.getExclusions()).toArray(TYPESAFE_EXCLUSIONS_ARRAY));
        return result;
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        try {
            scope = ScopeType.fromScopeType(resolvedScope);
        } catch (IllegalArgumentException e) {
            // let scope be RUNTIME
            log.log(Level.WARNING, "Invalid scope {0} of dependency {1} will be replaced by <scope>runtime</scope>",
                    new Object[] { dependency.getScope(), coordinate.toCanonicalForm() });
        }

        final MavenDependencySPI result = new MavenDependencyImpl(coordinate, scope,
                dependency.isOptional(), undeclaredScope, exclusions.toArray(TYPESAFE_EXCLUSIONS_ARRAY));
        return result;
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(2, versions.size());
        assertEquals(lowest, versions.get(0));
        assertEquals(highest, versions.get(1));
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        Assert.assertEquals(artifactId, coordinate.getArtifactId());
        Assert.assertEquals(version, coordinate.getVersion());
        Assert.assertEquals(packaging, coordinate.getPackaging());
        Assert.assertEquals(classifier, coordinate.getClassifier());
        Assert.assertEquals(groupId + ":" + artifactId + ":" + packaging.toString() + ":" + classifier + ":" + version,
            coordinate.toCanonicalForm());
    }

    @Test
    public void defaultPackagingType() {
        final String groupId = "groupId";
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(2, versions.size());
        assertEquals(lowest, versions.get(0));
        assertEquals(highest, versions.get(1));
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(1, versions.size());
        assertEquals(lowest, versions.get(0));
    }

    @Test
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(1, versions.size());
        assertEquals(lowest, versions.get(0));
    }

    @Test
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(2, versions.size());
        assertEquals(lowest, versions.get(0));
        assertEquals(highest, versions.get(1));
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(1, versions.size());
        assertEquals(lowest, versions.get(0));
        assertEquals(highest, versions.get(0));
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate.toCanonicalForm()

        final MavenCoordinate highest = versionRangeResult.getHighestVersion();
        final List<MavenCoordinate> versions = versionRangeResult.getVersions();

        // then
        assertEquals(lowestCoordinate, lowest.toCanonicalForm());
        assertEquals(highestCoordinate, highest.toCanonicalForm());
        assertEquals(2, versions.size());
        assertEquals(lowest, versions.get(0));
        assertEquals(highest, versions.get(1));
    }
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.