summaryrefslogtreecommitdiffstats
path: root/archiva-core/src/test
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-12-23 06:09:30 +0000
committerBrett Porter <brett@apache.org>2006-12-23 06:09:30 +0000
commit740994f99de3d6129094b96b0628188063f7c74c (patch)
treeb46f8a1cb1c83353b1bdeea3d5801c58d4d01e77 /archiva-core/src/test
parentc205446929ef8ac4df32d0697dafa01f796e664f (diff)
downloadarchiva-740994f99de3d6129094b96b0628188063f7c74c.tar.gz
archiva-740994f99de3d6129094b96b0628188063f7c74c.zip
Get rid of old Archiva component
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@489857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-core/src/test')
-rw-r--r--archiva-core/src/test/java/org/apache/maven/archiva/ArchivaTest.java40
-rw-r--r--archiva-core/src/test/java/org/apache/maven/archiva/LegacyRepositoryConverterTest.java44
2 files changed, 44 insertions, 40 deletions
diff --git a/archiva-core/src/test/java/org/apache/maven/archiva/ArchivaTest.java b/archiva-core/src/test/java/org/apache/maven/archiva/ArchivaTest.java
deleted file mode 100644
index 111bf9224..000000000
--- a/archiva-core/src/test/java/org/apache/maven/archiva/ArchivaTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.apache.maven.archiva;
-
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.codehaus.plexus.PlexusTestCase;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class ArchivaTest
- extends PlexusTestCase
-{
- public void testLegacyRepositoryConversion()
- throws Exception
- {
- File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
-
- File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
-
- Archiva rm = (Archiva) lookup( Archiva.ROLE );
-
- rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, null, true );
- }
-}
diff --git a/archiva-core/src/test/java/org/apache/maven/archiva/LegacyRepositoryConverterTest.java b/archiva-core/src/test/java/org/apache/maven/archiva/LegacyRepositoryConverterTest.java
new file mode 100644
index 000000000..bd13a7deb
--- /dev/null
+++ b/archiva-core/src/test/java/org/apache/maven/archiva/LegacyRepositoryConverterTest.java
@@ -0,0 +1,44 @@
+package org.apache.maven.archiva;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.archiva.conversion.LegacyRepositoryConverter;
+import org.codehaus.plexus.PlexusTestCase;
+
+import java.io.File;
+
+/**
+ * @author Jason van Zyl
+ */
+public class LegacyRepositoryConverterTest
+ extends PlexusTestCase
+{
+ public void testLegacyRepositoryConversion()
+ throws Exception
+ {
+ File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
+
+ File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
+
+ LegacyRepositoryConverter rm = (LegacyRepositoryConverter) lookup( LegacyRepositoryConverter.ROLE );
+
+ rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, null, true );
+ }
+}