|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.shale.usecases.systest.AbstractTestCase
org.apache.shale.usecases.systest.TokenTestCase
public class TokenTestCase
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 |
---|
public TokenTestCase(String name)
Method Detail |
---|
protected void setUp() throws Exception
AbstractTestCase
Set up the instance variables required for this test case.
setUp
in class AbstractTestCase
Exception
public static junit.framework.Test suite()
protected void tearDown() throws Exception
AbstractTestCase
Tear down instance variables required by this test case.
tearDown
in class AbstractTestCase
Exception
public void testDouble() throws Exception
Test that a double submit causes a validation error.
Exception
public void testNormal() throws Exception
Test the "normal" flow of submitting a correctly entered form.
Exception
public void testPristine() throws Exception
Validate pristine instance of the "Token" test page.
Exception
public void testValidate() throws Exception
Test that a validation error correctly stays on the same page
Exception
public void testValidateRetry() throws Exception
Test that fixing a validation error correctly allows the form to be submitted, but not resubmitted.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |