use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testRetainQualifier2.
@Test
public void testRetainQualifier2() {
IContentId value = parser.parseId("com.google.guava:guava:jar:28.0-jre:compile");
assertEquals("28.0-jre", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testOrbitBundle.
@Test
public void testOrbitBundle() {
IContentId value = parser.parseId("p2.eclipse-plugin:org.eclipse.core.jobs:jar:3.8.0.v20160509-0411");
assertEquals("p2", value.getType());
assertEquals("orbit", value.getSource());
assertEquals("p2.eclipse-plugin", value.getNamespace());
assertEquals("org.eclipse.core.jobs", value.getName());
assertEquals("3.8.0.v20160509-0411", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testWithNestedJar.
/**
* "p2.eclipse-plugin:org.jaxen:jar:lib/jaxen-1.1.6.jar:1.1.6.201804090728:system"
* maps to maven/mavencentral/org.jaxen/jaxen/1.1.6
*/
@Disabled
@Test
public void testWithNestedJar() {
IContentId value = parser.parseId("p2.eclipse-plugin:org.jaxen:jar:lib/jaxen-1.1.6.jar:1.1.6.201804090728:system");
assertEquals("jaxen", value.getName());
assertEquals("org.jaxen", value.getNamespace());
assertEquals("1.1.6", value.getVersion());
assertEquals("maven", value.getType());
assertEquals("mavencentral", value.getSource());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testWithVersionInNestedJar.
@Test
@Disabled
public void testWithVersionInNestedJar() {
IContentId value = parser.parseId("p2.eclipse-plugin:org.eclipse.wst.jsdt.chromium:jar:lib/json_simple/json_simple-1.1.jar:0.5.200.v201610211901:system");
assertEquals("p2", value.getType());
assertEquals("orbit", value.getSource());
assertEquals("org.eclipse.wst.jsdt.chromium", value.getNamespace());
assertEquals("json_simple", value.getName());
assertEquals("1.1", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testWithNonNumericVersionWithoutPhase.
@Test
public void testWithNonNumericVersionWithoutPhase() {
IContentId value = parser.parseId("com.google.javascript:closure-compiler-externs:jar:v20160315");
assertEquals("v20160315", value.getVersion());
}
Aggregations