net.sourceforge.smile.test
Class FacesConfigInterpreterTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sourceforge.smile.test.FacesConfigInterpreterTestCase
All Implemented Interfaces:
junit.framework.Test

public class FacesConfigInterpreterTestCase
extends junit.framework.TestCase

Test case that checks the FacesConfigInterpreter implementation.


Constructor Summary
FacesConfigInterpreterTestCase()
           
 
Method Summary
 void testAddingBadValidator()
          This test case checks that adding an invalid throws an exception
 void testAddingConverter()
          This test case checks that adding a renderer makes it available in the Application.
 void testAddingValidator()
          This test case checks that adding a validator makes it available in the Application.
 void testApplicationActionListenerBadComponentClass()
          This test checks that adding a component with an illegal component class throws an exception.
 void testConfigTagsOK()
          Check that the application/action-listener tag results in a new implementation for the application action listener.
 void testDefaultRendererKitAddRenderer()
          This test checks that adding a renderer to the default renderkit works.
 void testMergeConflict()
          This testcase checks that merge conflicts are detected correctly.
 void testMergeConflictComplex()
          This testcase checks that merge conflicts are detected correctly.
 void testMergeFacesConfigFiles()
           
 void testMergeFacesConfigFiles2()
          This testcase checks that a merge on two disjunt sets of navigation rules merges correctly
 void testMergeSelf()
          This test case checks that merging a file with it's self results in a correct tree..
 void testRendererKitAddition()
          This test checks that adding a new render kit works.
 void testReplaceDefaultRenderKit()
          This testcase checks that trying to replace the default renderkit fails..
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacesConfigInterpreterTestCase

public FacesConfigInterpreterTestCase()
Method Detail

testConfigTagsOK

public void testConfigTagsOK()
                      throws java.lang.Exception
Check that the application/action-listener tag results in a new implementation for the application action listener. Also checks adding of renders and converters.

Throws:
java.lang.Exception

testApplicationActionListenerBadComponentClass

public void testApplicationActionListenerBadComponentClass()
                                                    throws java.lang.Exception
This test checks that adding a component with an illegal component class throws an exception.

Throws:
java.lang.Exception

testRendererKitAddition

public void testRendererKitAddition()
                             throws java.lang.Exception
This test checks that adding a new render kit works.

Throws:
java.lang.Exception

testDefaultRendererKitAddRenderer

public void testDefaultRendererKitAddRenderer()
                                       throws java.lang.Exception
This test checks that adding a renderer to the default renderkit works.

Throws:
java.lang.Exception

testReplaceDefaultRenderKit

public void testReplaceDefaultRenderKit()
                                 throws java.lang.Exception
This testcase checks that trying to replace the default renderkit fails..

Throws:
java.lang.Exception

testAddingConverter

public void testAddingConverter()
                         throws java.lang.Exception
This test case checks that adding a renderer makes it available in the Application.

Throws:
java.lang.Exception

testAddingValidator

public void testAddingValidator()
                         throws java.lang.Exception
This test case checks that adding a validator makes it available in the Application.

Throws:
java.lang.Exception

testAddingBadValidator

public void testAddingBadValidator()
                            throws java.lang.Exception
This test case checks that adding an invalid throws an exception

Throws:
java.lang.Exception

testMergeFacesConfigFiles

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

testMergeFacesConfigFiles2

public void testMergeFacesConfigFiles2()
                                throws java.lang.Exception
This testcase checks that a merge on two disjunt sets of navigation rules merges correctly

Throws:
java.lang.Exception

testMergeSelf

public void testMergeSelf()
                   throws java.lang.Exception
This test case checks that merging a file with it's self results in a correct tree.. It merges the same file multiple times with itself as a robustness check.

Throws:
java.lang.Exception

testMergeConflict

public void testMergeConflict()
                       throws java.lang.Exception
This testcase checks that merge conflicts are detected correctly. faces-config 11 and 12 are allmost identical files, with a slight modification.

Throws:
java.lang.Exception

testMergeConflictComplex

public void testMergeConflictComplex()
                              throws java.lang.Exception
This testcase checks that merge conflicts are detected correctly. faces-config 13 and 14 are allmost identical files, with a slight modification.

Throws:
java.lang.Exception