From: James William Dumay Date: Fri, 13 Mar 2009 05:27:23 +0000 (+0000) Subject: Set sytem property before loading config X-Git-Tag: archiva-1.2~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b24700028788de56ab0367f1c2379f0b695e4c0f;p=archiva.git Set sytem property before loading config git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@753124 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java b/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java index 29aafc344..3787845bb 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/maven/archiva/configuration/ArchivaConfigurationTest.java @@ -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();