fix initialise call once application has already been started

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1448646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-21 14:15:19 +00:00
parent 239831dd69
commit 170bb815ea
2 changed files with 7 additions and 0 deletions

View File

@ -492,6 +492,7 @@ public class DefaultRoleManager
public void initialize()
{
knownResources = new HashMap<String, ModelApplication>();
StopWatch stopWatch = new StopWatch();
stopWatch.start();

View File

@ -985,6 +985,12 @@ public abstract class AbstractRbacManagerTestCase
}
@Test
public void testInitialize() throws Exception
{
rbacManager.initialize();
}
/**
* Allows subclasses to hook code after a test case has finished it's setup
*/