@@ -0,0 +1,1051 @@
+package test.gov.nih.nci.security.authentication;%0D%0A%0D%0Aimport gov.nih.nci.security.authentication.LockoutManager;%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0Apublic class LockoutManagerTest extends TestCase%7B%0D%0A%09%0D%0A%09private int value=0;%0D%0A%09public void testLockManager() throws Exception%7B%0D%0A%09%09%0D%0A%09%09for(int i=0;i%3C200;i++)%7B%0D%0A%09%09%09String string = %22 %22+i+%22 %22;%0D%0A%09%09%09ThreadExample example=new ThreadExample(string);%0D%0A%09%09%09example.start();%0D%0A%09%09%09LockoutManager lockoutManager=LockoutManager.getInstance();%0D%0A%09%09%09lockoutManager.unLockUser(%22%22+value);%0D%0A%09%09%09Thread.sleep(1);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09private class ThreadExample extends Thread%7B%0D%0A%09%09%0D%0A%09%09public ThreadExample(String threadName) %7B%0D%0A%09%09%09super(threadName);%0D%0A%09%09%7D%0D%0A%09%09@Override%0D%0A%09%09public synchronized void start() %7B%0D%0A%09%09%09super.start();%0D%0A%09%09%09System.out.println(%22Start method called %22+this.getName());%0D%0A%09%09%7D%0D%0A%09%09@Override%0D%0A%09%09public void run() %7B%0D%0A%09%09%09super.run();%0D%0A%09%09%09System.out.println(%22Run method called %22+this.getName());%0D%0A%09%09%09LockoutManager lockoutManager =LockoutManager.getInstance();%0D%0A%09%09%09lockoutManager.setFailedAttempt(%22%22+value++);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

test case for lockout manager