use of aQute.bnd.version.MavenVersion in project bnd by bndtools.
the class MavenVersionTest method testDotsInQualifier.
public void testDotsInQualifier() {
MavenVersion mv = MavenVersion.parseString("1.2.3.4.5");
assertEquals(new Version(1, 2, 3, "4.5"), mv.getOSGiVersion());
assertFalse(mv.isSnapshot());
mv = MavenVersion.parseString("1.2.3-4.5");
assertEquals(new Version(1, 2, 3, "4.5"), mv.getOSGiVersion());
assertFalse(mv.isSnapshot());
mv = MavenVersion.parseString("1.2-4.5");
assertEquals(new Version(1, 2, 0, "4.5"), mv.getOSGiVersion());
assertFalse(mv.isSnapshot());
mv = MavenVersion.parseString("1-4.5");
assertEquals(new Version(1, 0, 0, "4.5"), mv.getOSGiVersion());
assertFalse(mv.isSnapshot());
}
Aggregations