mirror of https://github.com/apache/archiva.git
fix unit test for RepositoryServletProxiedMetadataRemoteOnlyTest : call setup and tearDown
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135140 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c97525b3b6
commit
22ae2288b1
|
@ -20,6 +20,8 @@ package org.apache.maven.archiva.webdav;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,6 +32,22 @@ import org.junit.Test;
|
||||||
public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
extends AbstractRepositoryServletProxiedMetadataTestCase
|
extends AbstractRepositoryServletProxiedMetadataTestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setup()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
super.setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void tearDown()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
super.tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetProxiedSnapshotVersionMetadataRemoteOnly()
|
public void testGetProxiedSnapshotVersionMetadataRemoteOnly()
|
||||||
throws Exception
|
throws Exception
|
||||||
|
@ -44,8 +62,9 @@ public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
String timestamp = "20040305.112233";
|
String timestamp = "20040305.112233";
|
||||||
String buildNumber = "2";
|
String buildNumber = "2";
|
||||||
String lastUpdated = "20040305112233";
|
String lastUpdated = "20040305112233";
|
||||||
String expectedMetadata = createVersionMetadata( "org.apache.archiva", "archivatest-maven-plugin",
|
String expectedMetadata =
|
||||||
version, timestamp, buildNumber, lastUpdated);
|
createVersionMetadata( "org.apache.archiva", "archivatest-maven-plugin", version, timestamp, buildNumber,
|
||||||
|
lastUpdated );
|
||||||
|
|
||||||
populateRepo( remoteSnapshots, path, expectedMetadata );
|
populateRepo( remoteSnapshots, path, expectedMetadata );
|
||||||
|
|
||||||
|
@ -74,8 +93,9 @@ public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
String timestamp = "20071017.162810";
|
String timestamp = "20071017.162810";
|
||||||
String buildNumber = "20";
|
String buildNumber = "20";
|
||||||
String lastUpdated = "20071017162810";
|
String lastUpdated = "20071017162810";
|
||||||
String expectedMetadata = createVersionMetadata( "org.apache.maven.plugins", "maven-assembly-plugin", version,
|
String expectedMetadata =
|
||||||
timestamp, buildNumber, lastUpdated );
|
createVersionMetadata( "org.apache.maven.plugins", "maven-assembly-plugin", version, timestamp, buildNumber,
|
||||||
|
lastUpdated );
|
||||||
|
|
||||||
populateRepo( remoteSnapshots, path, expectedMetadata );
|
populateRepo( remoteSnapshots, path, expectedMetadata );
|
||||||
|
|
||||||
|
@ -100,8 +120,8 @@ public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
setupCleanInternalRepo();
|
setupCleanInternalRepo();
|
||||||
|
|
||||||
String path = "org/apache/archiva/archivatest-maven-plugin/4.0-alpha-2/maven-metadata.xml";
|
String path = "org/apache/archiva/archivatest-maven-plugin/4.0-alpha-2/maven-metadata.xml";
|
||||||
String expectedMetadata = createVersionMetadata( "org.apache.archiva", "archivatest-maven-plugin",
|
String expectedMetadata =
|
||||||
"4.0-alpha-2" );
|
createVersionMetadata( "org.apache.archiva", "archivatest-maven-plugin", "4.0-alpha-2" );
|
||||||
|
|
||||||
populateRepo( remoteSnapshots, path, expectedMetadata );
|
populateRepo( remoteSnapshots, path, expectedMetadata );
|
||||||
|
|
||||||
|
@ -128,8 +148,9 @@ public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
String path = "org/apache/archiva/archivatest-maven-plugin/maven-metadata.xml";
|
String path = "org/apache/archiva/archivatest-maven-plugin/maven-metadata.xml";
|
||||||
String latest = "1.0-alpha-4";
|
String latest = "1.0-alpha-4";
|
||||||
String release = "1.0-alpha-4";
|
String release = "1.0-alpha-4";
|
||||||
String expectedMetadata = createProjectMetadata( "org.apache.archiva", "archivatest-maven-plugin",
|
String expectedMetadata =
|
||||||
latest, release, new String[] { "1.0-alpha-4" } );
|
createProjectMetadata( "org.apache.archiva", "archivatest-maven-plugin", latest, release,
|
||||||
|
new String[]{ "1.0-alpha-4" } );
|
||||||
|
|
||||||
populateRepo( remoteSnapshots, path, expectedMetadata );
|
populateRepo( remoteSnapshots, path, expectedMetadata );
|
||||||
|
|
||||||
|
@ -154,7 +175,8 @@ public class RepositoryServletProxiedMetadataRemoteOnlyTest
|
||||||
setupCleanInternalRepo();
|
setupCleanInternalRepo();
|
||||||
|
|
||||||
String path = "org/apache/archiva/maven-metadata.xml";
|
String path = "org/apache/archiva/maven-metadata.xml";
|
||||||
String expectedMetadata = createGroupMetadata( "org.apache.archiva", new String[] { "archivatest-maven-plugin" } );
|
String expectedMetadata =
|
||||||
|
createGroupMetadata( "org.apache.archiva", new String[]{ "archivatest-maven-plugin" } );
|
||||||
|
|
||||||
populateRepo( remoteSnapshots, path, expectedMetadata );
|
populateRepo( remoteSnapshots, path, expectedMetadata );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue