javax.faces.webapp
Class ConfigFileTestCase

java.lang.Object
  extended by TestCase
      extended by javax.faces.webapp.ConfigFileTestCase

public class ConfigFileTestCase
extends TestCase

Unit tests for Configuration File processing.


Field Summary
protected  java.lang.String CONFIG_DTD_PUBLIC_ID
           
protected  Digester digester
          The Digester instance we will use to parse configuration files.
 
Constructor Summary
ConfigFileTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void configureRules(Digester digester)
           
protected  void configureRulesApplication(Digester digester)
           
protected  void configureRulesAttribute(Digester digester, java.lang.String prefix)
           
protected  void configureRulesComponent(Digester digester)
           
protected  void configureRulesConverter(Digester digester)
           
protected  void configureRulesFeature(Digester digester, java.lang.String prefix)
           
protected  void configureRulesProperty(Digester digester, java.lang.String prefix)
           
protected  void configureRulesValidator(Digester digester)
           
protected  Digester createDigester()
           
protected  ConfigBase parseConfig(java.net.URL config)
           
protected  java.net.URL relativeURL(java.lang.String relativePath)
           
 void setUp()
          Set up instance variables required by this test case.
static Test suite()
          Return the tests included in this test suite.
 void testEmpty()
           
 void testFull()
           
 void testPristine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DTD_PUBLIC_ID

protected java.lang.String CONFIG_DTD_PUBLIC_ID

digester

protected Digester digester
The Digester instance we will use to parse configuration files.

Constructor Detail

ConfigFileTestCase

public ConfigFileTestCase(java.lang.String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Set up instance variables required by this test case.

Throws:
java.lang.Exception

suite

public static Test suite()
Return the tests included in this test suite.


testEmpty

public void testEmpty()
               throws java.lang.Exception
Throws:
java.lang.Exception

testFull

public void testFull()
              throws java.lang.Exception
Throws:
java.lang.Exception

testPristine

public void testPristine()

createDigester

protected Digester createDigester()
                           throws java.lang.Exception
Throws:
java.lang.Exception

configureRules

protected void configureRules(Digester digester)

configureRulesApplication

protected void configureRulesApplication(Digester digester)

configureRulesAttribute

protected void configureRulesAttribute(Digester digester,
                                       java.lang.String prefix)

configureRulesComponent

protected void configureRulesComponent(Digester digester)

configureRulesConverter

protected void configureRulesConverter(Digester digester)

configureRulesFeature

protected void configureRulesFeature(Digester digester,
                                     java.lang.String prefix)

configureRulesProperty

protected void configureRulesProperty(Digester digester,
                                      java.lang.String prefix)

configureRulesValidator

protected void configureRulesValidator(Digester digester)

parseConfig

protected ConfigBase parseConfig(java.net.URL config)
                          throws java.lang.Exception
Throws:
java.lang.Exception

relativeURL

protected java.net.URL relativeURL(java.lang.String relativePath)
                            throws java.lang.Exception
Throws:
java.lang.Exception


Copyright 2002-2011 Oracle America Inc, Inc. All Rights Reserved.