]> source.dussan.org Git - archiva.git/commitdiff
Set sytem property before loading config
authorJames William Dumay <jdumay@apache.org>
Fri, 13 Mar 2009 05:27:23 +0000 (05:27 +0000)
committerJames William Dumay <jdumay@apache.org>
Fri, 13 Mar 2009 05:27:23 +0000 (05:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@753124 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java

index 29aafc344887e1dcc37b2ba766d855d53034164a..3787845bb97986561a2f98fd96679d62acd7f332 100644 (file)
@@ -186,11 +186,12 @@ public class ArchivaConfigurationTest
     public void testGetConfigurationSystemOverride()
         throws Exception
     {
-        ArchivaConfiguration archivaConfiguration =
-            (ArchivaConfiguration) lookup( ArchivaConfiguration.class.getName(), "test-configuration" );
 
         System.setProperty( "org.apache.maven.archiva.webapp.ui.appletFindEnabled", "false" );
 
+        ArchivaConfiguration archivaConfiguration =
+            (ArchivaConfiguration) lookup( ArchivaConfiguration.class.getName(), "test-configuration" );
+
         try
         {
             Configuration configuration = archivaConfiguration.getConfiguration();