org.apache.shale.usecases.systest
Class TokenTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.usecases.systest.AbstractTestCase
              extended by org.apache.shale.usecases.systest.TokenTestCase
All Implemented Interfaces:
junit.framework.Test

public class TokenTestCase
extends AbstractTestCase

Test case for the Token ViewController implementation.


Field Summary
 
Fields inherited from class org.apache.shale.usecases.systest.AbstractTestCase
page, url, webClient
 
Constructor Summary
TokenTestCase(String name)
           
 
Method Summary
protected  void setUp()
          Set up the instance variables required for this test case.
static junit.framework.Test suite()
           
protected  void tearDown()
          Tear down instance variables required by this test case.
 void testDouble()
          Test that a double submit causes a validation error.
 void testNormal()
          Test the "normal" flow of submitting a correctly entered form.
 void testPristine()
          Validate pristine instance of the "Token" test page.
 void testValidate()
          Test that a validation error correctly stays on the same page
 void testValidateRetry()
          Test that fixing a validation error correctly allows the form to be submitted, but not resubmitted.
 
Methods inherited from class org.apache.shale.usecases.systest.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

TokenTestCase

public TokenTestCase(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Description copied from class: AbstractTestCase

Set up the instance variables required for this test case.

Overrides:
setUp in class AbstractTestCase
Throws:
Exception

suite

public static junit.framework.Test suite()

tearDown

protected void tearDown()
                 throws Exception
Description copied from class: AbstractTestCase

Tear down instance variables required by this test case.

Overrides:
tearDown in class AbstractTestCase
Throws:
Exception

testDouble

public void testDouble()
                throws Exception

Test that a double submit causes a validation error.

Throws:
Exception

testNormal

public void testNormal()
                throws Exception

Test the "normal" flow of submitting a correctly entered form.

Throws:
Exception

testPristine

public void testPristine()
                  throws Exception

Validate pristine instance of the "Token" test page.

Throws:
Exception

testValidate

public void testValidate()
                  throws Exception

Test that a validation error correctly stays on the same page

Throws:
Exception

testValidateRetry

public void testValidateRetry()
                       throws Exception

Test that fixing a validation error correctly allows the form to be submitted, but not resubmitted.

Throws:
Exception


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.