/**
* Test a java find of a snapshot artifact that uses a timestamp format.
*/
public void testFindArtifactJavaSnapshotTimestamp()
{
ManagedArtifact artifact = managedRepos.findArtifact( "org.apache.geronimo.daytrader", "daytrader-wsappclient",
"2.0-20070201.183230-5", "jar" );
assertNotNull( artifact );
if ( !( artifact instanceof ManagedJavaArtifact ) )
{
fail( "Expected artifact to be type <" + ManagedJavaArtifact.class.getName() + "> but was actually <" +
artifact.getClass().getName() + ">." );
}
ManagedJavaArtifact javaArtifact = (ManagedJavaArtifact) artifact;
assertEquals( "test", javaArtifact.getRepositoryId() );