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:
parent
abe9dfd234
commit
748f427a80
|
@ -50,6 +50,12 @@ public class SecureContextImplTests extends TestCase {
|
||||||
junit.textui.TestRunner.run(SecureContextImplTests.class);
|
junit.textui.TestRunner.run(SecureContextImplTests.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testEmptyObjectsAreEquals() {
|
||||||
|
SecureContextImpl obj1 = new SecureContextImpl();
|
||||||
|
SecureContextImpl obj2 = new SecureContextImpl();
|
||||||
|
assertTrue(obj1.equals(obj2));
|
||||||
|
}
|
||||||
|
|
||||||
public void testSecureContextCorrectOperation() {
|
public void testSecureContextCorrectOperation() {
|
||||||
SecureContext context = new SecureContextImpl();
|
SecureContext context = new SecureContextImpl();
|
||||||
Authentication auth = new UsernamePasswordAuthenticationToken("marissa",
|
Authentication auth = new UsernamePasswordAuthenticationToken("marissa",
|
||||||
|
|
Loading…
Reference in New Issue