}
public void testGavLooseStrictedSnapshot()
throws Exception
{
Gav gav;
gav = gavCalculator.pathToGav( "/org/sonatype/nexus-3148/1.0.SNAPSHOT/nexus-3148-1.0.20100111.064938-1.pom" );
assertNotNull( gav );
assertEquals( "pom", gav.getExtension() );
assertEquals( "1.0.20100111.064938-1", gav.getVersion() );
assertEquals( "1.0.SNAPSHOT", gav.getBaseVersion() );
assertEquals( "org.sonatype", gav.getGroupId() );
assertEquals( "nexus-3148", gav.getArtifactId() );
assertEquals( null, gav.getClassifier() );
assertEquals( "pom", gav.getExtension() );
assertEquals( new Integer( 1 ), gav.getSnapshotBuildNumber() );
// the timestamp is UTC, not EST timezoned!
// also, the Gav is it seems TZ sensitive!!!
assertEquals( parseTimestamp( "20100111.064938" ), gav.getSnapshotTimeStamp() );
assertEquals( "nexus-3148-1.0.20100111.064938-1.pom", gav.getName() );
assertEquals( true, gav.isSnapshot() );
assertEquals( false, gav.isHash() );
assertEquals( null, gav.getHashType() );
String path = gavCalculator.gavToPath( gav );
assertEquals( "/org/sonatype/nexus-3148/1.0.SNAPSHOT/nexus-3148-1.0.20100111.064938-1.pom", path );
}