use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testMavenP2.
@Test
public void testMavenP2() {
IContentId value = parser.parseId("p2.eclipse-plugin:org.apache.ant:jar:lib/ant-commons-net.jar:1.10.8.v20200515-1239:system");
assertEquals("maven", value.getType());
assertEquals("mavencentral", value.getSource());
assertEquals("org.apache.ant", value.getNamespace());
assertEquals("ant-commons-net", value.getName());
assertEquals("1.10.8", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testMissingPhase.
@Test
public void testMissingPhase() {
IContentId value = parser.parseId("groupid:artifactid:jar:test:1.2.3");
assertEquals("groupid", value.getNamespace());
assertEquals("artifactid", value.getName());
assertEquals("1.2.3", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testExtraPadding.
@Test
public void testExtraPadding() {
IContentId value = parser.parseId(" groupid:artifactid:jar:1.2.3:compile ");
assertEquals("groupid", value.getNamespace());
assertEquals("artifactid", value.getName());
assertEquals("1.2.3", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testRetainQualifier1.
@Test
public void testRetainQualifier1() {
IContentId value = parser.parseId("p2.eclipse-plugin:org.eclipse.core.jobs:jar:3.8.0.20160509");
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.20160509", value.getVersion());
}
use of org.eclipse.dash.licenses.IContentId in project dash-licenses by eclipse.
the class MavenIdParserTests method testCreation1.
@Test
public void testCreation1() {
IContentId value = parser.parseId("groupid:artifactid:1.2.3");
assertEquals("groupid", value.getNamespace());
assertEquals("artifactid", value.getName());
assertEquals("1.2.3", value.getVersion());
}
Aggregations