]> source.dussan.org Git - archiva.git/commitdiff
prevent possible unit test failure
authorOlivier Lamy <olamy@apache.org>
Fri, 25 May 2012 22:27:20 +0000 (22:27 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 25 May 2012 22:27:20 +0000 (22:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342825 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java

index 19219c6390c31d5d9bb8d7a9a7c48116aeb33bc2..cb75bce99e1c72f3f31b58110b4ff29864f2ec6c 100644 (file)
@@ -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 );