aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-05-25 22:27:20 +0000
committerOlivier Lamy <olamy@apache.org>2012-05-25 22:27:20 +0000
commitb07f0d8108fd355f63c09a61e8330b5319db1b01 (patch)
treeff72c80f78fe6d920363da7b95a50c2fc3f4bfb5
parent7eb62f361a40373aef5417bbd5a340382858054d (diff)
downloadarchiva-b07f0d8108fd355f63c09a61e8330b5319db1b01.tar.gz
archiva-b07f0d8108fd355f63c09a61e8330b5319db1b01.zip
prevent possible unit test failure
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342825 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java
index 19219c639..cb75bce99 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java
@@ -18,6 +18,7 @@ package org.apache.archiva.rest.services;
* under the License.
*/
+import org.apache.archiva.admin.model.beans.UiConfiguration;
import org.apache.archiva.rest.api.model.Artifact;
import org.apache.archiva.rest.api.model.SearchRequest;
import org.apache.archiva.rest.api.services.SearchService;
@@ -212,7 +213,9 @@ public class SearchServiceTest
{
assertNotNull( getUserService( authorizationHeader ).createGuestUser() );
}
-
+ UiConfiguration uiConfiguration = new UiConfiguration();
+ uiConfiguration.setApplicationUrl( null );
+ getArchivaAdministrationService().setUiConfiguration( uiConfiguration );
createAndIndexRepo( testRepoId, "src/test/repo-with-osgi" );
SearchService searchService = getSearchService( authorizationHeader );