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

Quick Search    Search Deep

org.apache.struts.faces.sysclient
Class LogonTestCase  view LogonTestCase download LogonTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.struts.faces.sysclient.AbstractTestCase
              extended byorg.apache.struts.faces.sysclient.LogonTestCase
All Implemented Interfaces:
junit.framework.Test

public class LogonTestCase
extends AbstractTestCase

Test case for a logon form that accepts a username and password.

FIXME - The JavaScript execution support in HtmlUnit 1.2.3 is not sufficient to test clicking the hyperlink generated by a Command Link component, so it is not tested automatically.

Version:
$Rev: 55303 $ $Date: 2004-10-22 03:56:53 +0100 (Fri, 22 Oct 2004) $

Field Summary
 
Fields inherited from class org.apache.struts.faces.sysclient.AbstractTestCase
httpState, page, url, webClient
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
LogonTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
 void setUp()
          Set up the instance variables required for this test case.
static junit.framework.Test suite()
          Return the set of tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testIncorrect()
          Submit incorrect input fields and verify the correct response.
 void testMismatch()
          Submit known-bad mismatch and verify the correct response.
 void testPristine()
          Verify the content of a pristine page returned when executing this view for the first time.
 void testSuccessful()
          Submit known-good username and password values, and verify the correct response.
 
Methods inherited from class org.apache.struts.faces.sysclient.AbstractTestCase
body, element, form, head, link, page, submit, title, url
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

LogonTestCase

public LogonTestCase(java.lang.String name)

Construct a new instance of this test case.

Method Detail

setUp

public void setUp()
           throws java.lang.Exception

Set up the instance variables required for this test case.

Overrides:
setUp in class AbstractTestCase

suite

public static junit.framework.Test suite()

Return the set of tests included in this test suite.


tearDown

public void tearDown()

Tear down instance variables required by this test case.

Overrides:
tearDown in class AbstractTestCase

testIncorrect

public void testIncorrect()
                   throws java.lang.Exception

Submit incorrect input fields and verify the correct response.


testPristine

public void testPristine()
                  throws java.lang.Exception

Verify the content of a pristine page returned when executing this view for the first time.


testMismatch

public void testMismatch()
                  throws java.lang.Exception

Submit known-bad mismatch and verify the correct response.


testSuccessful

public void testSuccessful()
                    throws java.lang.Exception

Submit known-good username and password values, and verify the correct response.