Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.securityfilter.test.http.form
Class SessionInvalidationTest  view SessionInvalidationTest download SessionInvalidationTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.securityfilter.test.http.TestBase
              extended byorg.securityfilter.test.http.form.SessionInvalidationTest
All Implemented Interfaces:
junit.framework.Test

public class SessionInvalidationTest
extends org.securityfilter.test.http.TestBase

SessionInvalidationTest - tests the logout functionality.

Version:
$Revision: 1.1 $ $Date: 2003/10/25 10:49:03 $

Field Summary
private static java.lang.String POST_VALUE_1
           
private static java.lang.String POST_VALUE_2
           
 
Fields inherited from class org.securityfilter.test.http.TestBase
baseUrl, session
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
SessionInvalidationTest(java.lang.String name)
          Constructor
 
Method Summary
 void testInvaidateSessionForDifferentUser()
          Test that the session is invalidated if the user spontaneously logs in again with a different username.
 void testKeepSessionForSameUser()
          Test that the session is kept if the user spontaneously logs in again with the same username.
 
Methods inherited from class org.securityfilter.test.http.TestBase
assertPageTitle, assertPageTitleAfterLogin, performJustInTimeLogin, setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POST_VALUE_1

private static final java.lang.String POST_VALUE_1
See Also:
Constant Field Values

POST_VALUE_2

private static final java.lang.String POST_VALUE_2
See Also:
Constant Field Values
Constructor Detail

SessionInvalidationTest

public SessionInvalidationTest(java.lang.String name)
Constructor

Method Detail

testKeepSessionForSameUser

public void testKeepSessionForSameUser()
                                throws java.lang.Exception
Test that the session is kept if the user spontaneously logs in again with the same username.


testInvaidateSessionForDifferentUser

public void testInvaidateSessionForDifferentUser()
                                          throws java.lang.Exception
Test that the session is invalidated if the user spontaneously logs in again with a different username.