type = "distribution-zip";
remainingFilename = remainingFilename.substring( 0, remainingFilename.length() - ".zip".length() );
}
+ else if ( remainingFilename.endsWith( "-test-sources.jar" ) )
+ {
+ type = "java-source";
+ classifier = "test-sources";
+ remainingFilename =
+ remainingFilename.substring( 0, remainingFilename.length() - "-test-sources.jar".length() );
+ }
else if ( remainingFilename.endsWith( "-sources.jar" ) )
{
type = "java-source";
createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "sources" ) ) );
}
+ public void testTestSourcesInclusion()
+ throws DiscovererException
+{
+ List artifacts = discoverArtifactsWithSnapshots();
+ assertNotNull( "Check artifacts not null", artifacts );
+
+ assertTrue( "Check normal included", artifacts.contains(
+ createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "test-sources" ) ) );
+}
+
public void testDistributionInclusion()
throws DiscovererException
{