]> source.dussan.org Git - archiva.git/commitdiff
fix test compilation issue
authorOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 12:17:42 +0000 (12:17 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 12:17:42 +0000 (12:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233309 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java

index c29bd407cf3aa1c586f1e942085dada8eec1db8e..b8c1f34afd825ee5cb51366639a0e7367462d8f6 100644 (file)
@@ -23,6 +23,7 @@ import junit.framework.TestCase;
 import org.apache.archiva.admin.model.RepositoryAdminException;
 import org.apache.archiva.admin.model.beans.ManagedRepository;
 import org.apache.archiva.admin.model.beans.RepositoryGroup;
+import org.apache.archiva.admin.repository.DefaultRepositoryCommonValidator;
 import org.apache.archiva.admin.repository.group.DefaultRepositoryGroupAdmin;
 import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin;
 import org.apache.archiva.common.plexusbridge.PlexusSisuBridge;
@@ -136,7 +137,8 @@ public class ArchivaDavResourceFactoryTest
         archivaConfigurationControl.replay();
 
         defaultManagedRepositoryAdmin.setArchivaConfiguration( archivaConfiguration );
-        defaultManagedRepositoryAdmin.getRepositoryCommonValidator().setArchivaConfiguration( archivaConfiguration );
+        ( (DefaultRepositoryCommonValidator) defaultManagedRepositoryAdmin.getRepositoryCommonValidator() ).setArchivaConfiguration(
+            archivaConfiguration );
         if ( defaultManagedRepositoryAdmin.getManagedRepository( RELEASES_REPO ) == null )
         {
             defaultManagedRepositoryAdmin.addManagedRepository(