@@ -0,0 +1,913 @@
+package gov.nih.nci.cabig.caaers.security;%0A%0Aimport gov.nih.nci.cabig.caaers.CaaersDbNoSecurityTestCase;%0Aimport gov.nih.nci.security.authentication.LockoutManager;%0A%0Apublic class CaaersCSMAuthenticationProviderTest extends CaaersDbNoSecurityTestCase %7B%0A%0A%09private CaaersCSMAuthenticationProvider provider;%0A%09%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%7D%0A%09%0A%09public void testHere() %7B%0A%09%09assertNotNull(provider);%0A%09%7D%09%0A%09%0A%09public void testLockoutManagerLoading()%7B%0A        LockoutManager lockoutManager = (LockoutManager) getDeployedApplicationContext().getBean(%22csmLockoutManager%22);%0A        assertNotNull(lockoutManager);%0A%0A        //fail the test user 10 times%0A        for(int i = 0; i %3C 10; i++)%7B%0A            lockoutManager.setFailedAttempt(%22test%22);%0A        %7D%0A        %0A        //since lockout is disabled, should not lockout user %22test%22%0A        assertFalse(lockoutManager.isUserLockedOut(%22test%22));%0A    %7D%0A%7D%0A

Test case for Disabling LockoutManger