From b24700028788de56ab0367f1c2379f0b695e4c0f Mon Sep 17 00:00:00 2001 From: James William Dumay Date: Fri, 13 Mar 2009 05:27:23 +0000 Subject: [PATCH] Set sytem property before loading config git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@753124 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/configuration/ArchivaConfigurationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.39.5