/**
* AbstractLegacyRepositoryContentTestCase
- *
- *
*/
@RunWith ( ArchivaSpringJUnit4ClassRunner.class )
@ContextConfiguration ( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
public abstract class AbstractLegacyRepositoryContentTestCase
+ extends AbstractRepositoryLayerTestCase
{
@Test
public void testBadPathArtifactIdMissingA()
/**
* [MRM-432] Oddball version spec.
* Example of an oddball / unusual version spec.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodButOddVersionSpecGanymedSsh2()
/**
* [MRM-432] Oddball version spec.
* Example of an oddball / unusual version spec.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodButOddVersionSpecJavaxComm()
/**
* [MRM-432] Oddball version spec.
* Example of an oddball / unusual version spec.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodButOddVersionSpecJavaxPersistence()
/**
* Test the classifier.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodFooLibJavadoc()
/**
* Test the classifier, and java-source type spec.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodFooLibSources()
/**
* A timestamped versioned artifact, should reside in a SNAPSHOT baseversion directory.
+ *
* @throws org.apache.archiva.repository.layout.LayoutException
+ *
*/
@Test
public void testGoodSnapshotMavenTest()
}
/**
- * [MRM-768] Artifact type "maven-plugin" does not distinguish maven1 and maven2 plugins.
+ * [MRM-768] Artifact type "maven-plugin" does not distinguish maven1 and maven2 plugins.
* This produces conflicts when m2 plugins are stored in legacy-layout repository
*/
@Test
/**
* Perform a roundtrip through the layout routines to determine success.
+ *
* @param classifier TODO
*/
- private void assertLayout( String path, String groupId, String artifactId, String version, String classifier, String type )
+ private void assertLayout( String path, String groupId, String artifactId, String version, String classifier,
+ String type )
throws LayoutException
{
ArtifactReference expectedArtifact = createArtifact( groupId, artifactId, version, classifier, type );
assertEquals( expectedId + " - Type", type, actualReference.getType() );
}
- protected ArtifactReference createArtifact( String groupId, String artifactId, String version, String classifier, String type )
+ protected ArtifactReference createArtifact( String groupId, String artifactId, String version, String classifier,
+ String type )
{
ArtifactReference artifact = new ArtifactReference();
artifact.setGroupId( groupId );
try
{
toArtifactReference( path );
- fail( "Should have thrown a LayoutException on the invalid path [" + path + "] because of [" + reason + "]" );
+ fail(
+ "Should have thrown a LayoutException on the invalid path [" + path + "] because of [" + reason + "]" );
}
catch ( LayoutException e )
{