Prove SecureContextImpl.equals works as we want it to, in light of HttpSessionContextIntegrationFilter's attempts to avoid unnecessary HttpSession creation.

This commit is contained in:
Ben Alex 2005-03-17 23:35:29 +00:00
parent abe9dfd234
commit 748f427a80
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ public class SecureContextImplTests extends TestCase {
junit.textui.TestRunner.run(SecureContextImplTests.class);
}
public void testEmptyObjectsAreEquals() {
SecureContextImpl obj1 = new SecureContextImpl();
SecureContextImpl obj2 = new SecureContextImpl();
assertTrue(obj1.equals(obj2));
}
public void testSecureContextCorrectOperation() {
SecureContext context = new SecureContextImpl();
Authentication auth = new UsernamePasswordAuthenticationToken("marissa",