summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-14 09:27:56 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-14 09:27:56 +0000
commitfa31d5bba58d7c0268ea59e63181cfc688da15f4 (patch)
tree188a95e9e53c777b04d2d41c6e3d69bb2c73d79e /archiva-modules/archiva-web/archiva-rest
parentc63b642e6914bf5f564719e4d75bcc77ad526caf (diff)
downloadarchiva-fa31d5bba58d7c0268ea59e63181cfc688da15f4.tar.gz
archiva-fa31d5bba58d7c0268ea59e63181cfc688da15f4.zip
[MRM-918] Switch for disabling user registration.
implements backend part. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384695 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ArchivaAdministrationServiceTest.java3
1 files changed, 3 insertions, 0 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 ddf1fac03..9c9e18653 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
@@ -117,6 +117,7 @@ public class ArchivaAdministrationServiceTest
assertNotNull( ui );
// assert default values
assertFalse( ui.isDisableEasterEggs() );
+ assertFalse( ui.isDisableRegistration() );
assertTrue( ui.isAppletFindEnabled() );
assertTrue( ui.isShowFindArtifacts() );
assertNull( ui.getApplicationUrl() );
@@ -124,6 +125,7 @@ public class ArchivaAdministrationServiceTest
ui.setAppletFindEnabled( false );
ui.setShowFindArtifacts( false );
ui.setDisableEasterEggs( true );
+ ui.setDisableRegistration( true );
String url = "http://foo.fr/bar";
ui.setApplicationUrl( url );
@@ -132,6 +134,7 @@ public class ArchivaAdministrationServiceTest
ui = getArchivaAdministrationService().getUiConfiguration();
assertTrue( ui.isDisableEasterEggs() );
+ assertTrue( ui.isDisableRegistration() );
assertFalse( ui.isAppletFindEnabled() );
assertFalse( ui.isShowFindArtifacts() );
assertEquals( url, ui.getApplicationUrl() );