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

Quick Search    Search Deep

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

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

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

DefaultPageTest - tests that the user is sent to the default page on an "unsolicited" login.

Version:
$Revision: 1.4 $ $Date: 2003/10/25 10:17:01 $

Field Summary
 
Fields inherited from class org.securityfilter.test.http.TestBase
baseUrl, session
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DefaultPageTest(java.lang.String name)
          Constructor
 
Method Summary
 void testDefaultPageAfterLoginPage()
          Test that the user is sent to the default page after they request the login page and login.
 void testDefaultPageAfterSpontaneousLogin()
          Test that the user is sent to the default page after they spontaneously login.
 
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
 

Constructor Detail

DefaultPageTest

public DefaultPageTest(java.lang.String name)
Constructor

Method Detail

testDefaultPageAfterLoginPage

public void testDefaultPageAfterLoginPage()
                                   throws java.lang.Exception
Test that the user is sent to the default page after they request the login page and login. Sequence of events: 1. ASSERT: baseUrl (set from base.url system property) is not null 2. request loginPage.jsp 3. ASSERT: response should be the login page 4. submit valid login credentials 5. ASSERT: response should be the default page (after auto-redirect)


testDefaultPageAfterSpontaneousLogin

public void testDefaultPageAfterSpontaneousLogin()
                                          throws java.lang.Exception
Test that the user is sent to the default page after they spontaneously login. Sequence of events: 1. ASSERT: baseUrl (set from base.url system property) is not null 2. submit valid login credentials 3. ASSERT: response should be the default page (after auto-redirect)