use of org.commonjava.atlas.maven.ident.version.VersionSpec in project atlas by Commonjava.
the class VersionParserTest method parseRangeWithStrings.
@Test
public void parseRangeWithStrings() throws Exception {
final String range = "[2.0.12-redhat-1,2.0.12-redhat-2]";
final VersionSpec parsed = new VersionParser(range).parse();
System.out.println(parsed);
}
use of org.commonjava.atlas.maven.ident.version.VersionSpec in project atlas by Commonjava.
the class VersionParserTest method parseSingleVersionWithModifiedDateTimeFormat.
@Test
public void parseSingleVersionWithModifiedDateTimeFormat() throws Exception {
final String version = "20031129.200437j";
final VersionSpec parsed = new VersionParser(version).parse();
System.out.println(parsed);
}
use of org.commonjava.atlas.maven.ident.version.VersionSpec in project atlas by Commonjava.
the class VersionParserTest method parseSingleVersionWithExtendedDateTimeFormat.
@Test
public void parseSingleVersionWithExtendedDateTimeFormat() throws Exception {
final String version = "20031129.200437-600";
final VersionSpec parsed = new VersionParser(version).parse();
System.out.println(parsed);
}
use of org.commonjava.atlas.maven.ident.version.VersionSpec in project atlas by Commonjava.
the class VersionParserTest method parseSingleVersionWithPlusSeparator.
@Test
public void parseSingleVersionWithPlusSeparator() throws Exception {
final String version = "9+181-r4173-1";
final VersionSpec parsed = new VersionParser(version).parse();
System.out.println(parsed);
}
use of org.commonjava.atlas.maven.ident.version.VersionSpec in project atlas by Commonjava.
the class ProjectVersionRefTest method constructWithStringVersionAndRenderStandardSpecMatches.
@Test
public void constructWithStringVersionAndRenderStandardSpecMatches() throws InvalidVersionSpecificationException {
final String ver = "2.1.1.Final";
final ProjectVersionRef ref = new SimpleProjectVersionRef("g", "a", ver);
final VersionSpec spec = ref.getVersionSpec();
assertThat(spec.renderStandard(), equalTo(ver));
}
Aggregations