aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-05-24 21:59:57 +0000
committerOlivier Lamy <olamy@apache.org>2012-05-24 21:59:57 +0000
commit25b768a317b1f4367e7586fea5437ab79b0cc815 (patch)
tree0662d395ad22100c0ac134bc777632078d7b5f38 /archiva-modules/archiva-web
parent8d5fdbb102c559391b167de6c2aeb28f72c93510 (diff)
downloadarchiva-25b768a317b1f4367e7586fea5437ab79b0cc815.tar.gz
archiva-25b768a317b1f4367e7586fea5437ab79b0cc815.zip
[MRM-1629] Add a configuration field for the application url.
add unit test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1342457 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.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/ArchivaAdministrationServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.java
index 22702b7db..ddf1fac03 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.java
@@ -119,10 +119,13 @@ public class ArchivaAdministrationServiceTest
assertFalse( ui.isDisableEasterEggs() );
assertTrue( ui.isAppletFindEnabled() );
assertTrue( ui.isShowFindArtifacts() );
+ assertNull( ui.getApplicationUrl() );
ui.setAppletFindEnabled( false );
ui.setShowFindArtifacts( false );
ui.setDisableEasterEggs( true );
+ String url = "http://foo.fr/bar";
+ ui.setApplicationUrl( url );
getArchivaAdministrationService().setUiConfiguration( ui );
@@ -131,6 +134,7 @@ public class ArchivaAdministrationServiceTest
assertTrue( ui.isDisableEasterEggs() );
assertFalse( ui.isAppletFindEnabled() );
assertFalse( ui.isShowFindArtifacts() );
+ assertEquals( url, ui.getApplicationUrl() );
}
@Test
@@ -157,7 +161,6 @@ public class ArchivaAdministrationServiceTest
assertFalse( consumers.isEmpty() );
assertAllEnabled( consumers );
-
getArchivaAdministrationService().disabledInvalidContentConsumer( "foo" );
consumers = getArchivaAdministrationService().getInvalidContentAdminRepositoryConsumers();