mirror of https://github.com/apache/archiva.git
[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
This commit is contained in:
parent
8d5fdbb102
commit
25b768a317
|
@ -119,10 +119,13 @@ public class ArchivaAdministrationServiceTest
|
||||||
assertFalse( ui.isDisableEasterEggs() );
|
assertFalse( ui.isDisableEasterEggs() );
|
||||||
assertTrue( ui.isAppletFindEnabled() );
|
assertTrue( ui.isAppletFindEnabled() );
|
||||||
assertTrue( ui.isShowFindArtifacts() );
|
assertTrue( ui.isShowFindArtifacts() );
|
||||||
|
assertNull( ui.getApplicationUrl() );
|
||||||
|
|
||||||
ui.setAppletFindEnabled( false );
|
ui.setAppletFindEnabled( false );
|
||||||
ui.setShowFindArtifacts( false );
|
ui.setShowFindArtifacts( false );
|
||||||
ui.setDisableEasterEggs( true );
|
ui.setDisableEasterEggs( true );
|
||||||
|
String url = "http://foo.fr/bar";
|
||||||
|
ui.setApplicationUrl( url );
|
||||||
|
|
||||||
getArchivaAdministrationService().setUiConfiguration( ui );
|
getArchivaAdministrationService().setUiConfiguration( ui );
|
||||||
|
|
||||||
|
@ -131,6 +134,7 @@ public class ArchivaAdministrationServiceTest
|
||||||
assertTrue( ui.isDisableEasterEggs() );
|
assertTrue( ui.isDisableEasterEggs() );
|
||||||
assertFalse( ui.isAppletFindEnabled() );
|
assertFalse( ui.isAppletFindEnabled() );
|
||||||
assertFalse( ui.isShowFindArtifacts() );
|
assertFalse( ui.isShowFindArtifacts() );
|
||||||
|
assertEquals( url, ui.getApplicationUrl() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -157,7 +161,6 @@ public class ArchivaAdministrationServiceTest
|
||||||
assertFalse( consumers.isEmpty() );
|
assertFalse( consumers.isEmpty() );
|
||||||
assertAllEnabled( consumers );
|
assertAllEnabled( consumers );
|
||||||
|
|
||||||
|
|
||||||
getArchivaAdministrationService().disabledInvalidContentConsumer( "foo" );
|
getArchivaAdministrationService().disabledInvalidContentConsumer( "foo" );
|
||||||
|
|
||||||
consumers = getArchivaAdministrationService().getInvalidContentAdminRepositoryConsumers();
|
consumers = getArchivaAdministrationService().getInvalidContentAdminRepositoryConsumers();
|
||||||
|
|
Loading…
Reference in New Issue