|
||||||||||
| 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.jboss.jsfunit.analysis.NavigationCaseTestCase
public class NavigationCaseTestCase
A TestCase for a single JSF navigation case.
| Field Summary | |
|---|---|
protected String |
configFilePath
path to the config file |
protected Node |
navigationCaseNode
DOM node of the navigation case to test |
| Constructor Summary | |
|---|---|
NavigationCaseTestCase(String name,
String configFilePath,
Node navigationCaseNode)
Create a new NavigationCaseTestCase. |
|
| Method Summary | |
|---|---|
void |
runTest()
Call the individual test methods. |
void |
testFromAction()
Assert that a from-action is either configured and is not of zero length or not configured. |
void |
testRedirectNoDuplicates()
Assert that either no redirect attribute or exactly one is configured. |
void |
testToViewId()
Assert that a to-view-id is configured and is not of zero length. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, setUp, 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 |
|---|
protected String configFilePath
protected Node navigationCaseNode
| Constructor Detail |
|---|
public NavigationCaseTestCase(String name,
String configFilePath,
Node navigationCaseNode)
name - The name of the test-case in the JUnit test-hierarchyconfigFilePath - path to a single config filenavigationCaseNode - the DOM node containing the navigation case| Method Detail |
|---|
public void runTest()
runTest in class junit.framework.TestCasepublic void testToViewId()
public void testFromAction()
public void testRedirectNoDuplicates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||