org.jboss.jsfunit.analysis
Class RenderKitTestCase

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

public class RenderKitTestCase
extends AbstractInterfaceTestCase

A TestCase for a single JSF renderKit node.

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

Field Summary
protected  String configFilePath
          path to the config file
protected  Node renderKitNode
          DOM node of the renderKit to test
 
Fields inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase
classClass, className, jsfElement
 
Constructor Summary
RenderKitTestCase(String name, String configFilePath, Node renderKitNode)
          Create a new RenderKitTestCase.
 
Method Summary
protected  Class<?> getClassToExtend()
          Return the class to be extended, this munst be implemented by the specific TestCase.
 String getRenderKitClassName()
          Extract and return the render kit class name, if configured.
 void runTest()
          Call the individual test methods.
 
Methods inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase
setClassName, testClassLoadable, testInterface
 
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


renderKitNode

protected Node renderKitNode
DOM node of the renderKit to test

Constructor Detail

RenderKitTestCase

public RenderKitTestCase(String name,
                         String configFilePath,
                         Node renderKitNode)
Create a new RenderKitTestCase.

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

runTest

public void runTest()
Call the individual test methods.

Overrides:
runTest in class AbstractInterfaceTestCase

getRenderKitClassName

public String getRenderKitClassName()
Extract and return the render kit class name, if configured.

Returns:
class name or null (if not configured)

getClassToExtend

protected Class<?> getClassToExtend()
Description copied from class: AbstractInterfaceTestCase
Return the class to be extended, this munst be implemented by the specific TestCase.

Specified by:
getClassToExtend in class AbstractInterfaceTestCase
Returns:
the class to be extended


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