org.jboss.jsfunit.analysis
Class DefaultRenderkitTestCase

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

public class DefaultRenderkitTestCase
extends junit.framework.TestCase

A TestCase for a single JSF default renderkit configuration.

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

Field Summary
protected  List<String> configFilePathList
          List of all passed config Files
protected  String defaultRenderkitId
          Id of the defaultRenderkit
 
Constructor Summary
DefaultRenderkitTestCase(String defaultRenderkitId, List<String> configFilePathList)
          Create a new ActionListenerTestCase.
DefaultRenderkitTestCase(String defaultRenderkitId, List<String> configFilePathList, ConfigUtils configUtils)
          Create a new ActionListenerTestCase.
 
Method Summary
 ConfigUtils getConfigUtils()
          Get the configUtils.
 StreamProvider getStreamProvider()
          Accessor for the streamProvider attribute
 void runTest()
          Call the individual test methods.
 void setConfigUtils(ConfigUtils configUtils)
          Set the configUtils.
 void setStreamProvider(StreamProvider streamProvider)
          Accessor for the streamProvider attribute.
 void testRenderkitDefined()
          Assert that the configured default renderkit is defined
 
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

defaultRenderkitId

protected String defaultRenderkitId
Id of the defaultRenderkit


configFilePathList

protected List<String> configFilePathList
List of all passed config Files

Constructor Detail

DefaultRenderkitTestCase

public DefaultRenderkitTestCase(String defaultRenderkitId,
                                List<String> configFilePathList)
Create a new ActionListenerTestCase.

Parameters:
name - The name of the test-case in the JUnit test-hierarchy
actionListenerName - the name of the action listener to test

DefaultRenderkitTestCase

public DefaultRenderkitTestCase(String defaultRenderkitId,
                                List<String> configFilePathList,
                                ConfigUtils configUtils)
Create a new ActionListenerTestCase.

Parameters:
name - The name of the test-case in the JUnit test-hierarchy
actionListenerName - the name of the action listener to test
configUtils - an instance of the configUtils
Method Detail

runTest

public void runTest()
Call the individual test methods.

Overrides:
runTest in class junit.framework.TestCase

testRenderkitDefined

public void testRenderkitDefined()
Assert that the configured default renderkit is defined


getStreamProvider

public StreamProvider getStreamProvider()
Accessor for the streamProvider attribute

Returns:
the streamprovider

setStreamProvider

public void setStreamProvider(StreamProvider streamProvider)

Accessor for the streamProvider attribute. Usually used to set a special StreamProvider. By default a DefaultStreamProvider is created.

Parameters:
streamProvider - the new StreamProvider

getConfigUtils

public ConfigUtils getConfigUtils()
Get the configUtils.

Returns:
the configUtils.

setConfigUtils

public void setConfigUtils(ConfigUtils configUtils)
Set the configUtils.

Parameters:
configUtils - The configUtils to set.


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