org.jboss.jsfunit.analysis
Class NavigationCaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.jsfunit.analysis.NavigationCaseTestCase
All Implemented Interfaces:
junit.framework.Test

public class NavigationCaseTestCase
extends junit.framework.TestCase

A TestCase for a single JSF navigation case.

Version:
$$Revision: $$
Author:
Alexander Jesse

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

configFilePath

protected String configFilePath
path to the config file


navigationCaseNode

protected Node navigationCaseNode
DOM node of the navigation case to test

Constructor Detail

NavigationCaseTestCase

public NavigationCaseTestCase(String name,
                              String configFilePath,
                              Node navigationCaseNode)
Create a new NavigationCaseTestCase.

Parameters:
name - The name of the test-case in the JUnit test-hierarchy
configFilePath - path to a single config file
navigationCaseNode - the DOM node containing the navigation case
Method Detail

runTest

public void runTest()
Call the individual test methods.

Overrides:
runTest in class junit.framework.TestCase

testToViewId

public void testToViewId()
Assert that a to-view-id is configured and is not of zero length.


testFromAction

public void testFromAction()
Assert that a from-action is either configured and is not of zero length or not configured.


testRedirectNoDuplicates

public void testRedirectNoDuplicates()
Assert that either no redirect attribute or exactly one is configured.



Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.