org.apache.myfaces.custom.tree2
Class UITreeDataTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.myfaces.test.base.AbstractJsfTestCase
              extended by org.apache.myfaces.test.base.AbstractViewControllerTestCase
                  extended by org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase
                      extended by org.apache.myfaces.custom.tree2.AbstractTreeTestCase
                          extended by org.apache.myfaces.custom.tree2.UITreeDataTest
All Implemented Interfaces:
junit.framework.Test

public class UITreeDataTest
extends AbstractTreeTestCase

Test case for UITreeData.


Field Summary
 
Fields inherited from class org.apache.myfaces.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
UITreeDataTest(String name)
          Constructor
 
Method Summary
protected  void setUp()
          See abstract class
static junit.framework.Test suite()
           
 void testCollapseAll()
          Tests the ability to collapse all nodes at once.
 void testEmptyFacet()
          Its possible that a facet will be empty on the decode if it contained only EL text.
 void testExpandAll()
          Tests the ability to expand all nodes at once.
 void testNodeSelected()
          Tests the selection of a specific node using both server side and client side toggle options.
 void testProgramaticSelection()
          Tests programatic selection of a node.
 
Methods inherited from class org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase
assertIdExists, tearDown
 
Methods inherited from class org.apache.myfaces.test.base.AbstractViewControllerTestCase
checkMessageCount, checkMessageCount
 
Methods inherited from class org.apache.myfaces.test.base.AbstractJsfTestCase
setFactories, setUpApplication, setUpExternalContext, setUpFacesContext, setUpJSFObjects, setUpLifecycle, setUpRenderKit, setUpServletObjects, setUpView
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UITreeDataTest

public UITreeDataTest(String name)
Constructor

Parameters:
name - String
Method Detail

setUp

protected void setUp()
              throws Exception
See abstract class

Overrides:
setUp in class AbstractTreeTestCase
Throws:
Exception

testNodeSelected

public void testNodeSelected()
                      throws Exception
Tests the selection of a specific node using both server side and client side toggle options.

Throws:
Exception

testProgramaticSelection

public void testProgramaticSelection()
                              throws Exception
Tests programatic selection of a node. (See MYFACES-717)

Throws:
Exception

testExpandAll

public void testExpandAll()
                   throws Exception
Tests the ability to expand all nodes at once. (See TOMAHAWK-436)

Throws:
Exception

testCollapseAll

public void testCollapseAll()
                     throws Exception
Tests the ability to collapse all nodes at once. (See TOMAHAWK-27)

Throws:
Exception

testEmptyFacet

public void testEmptyFacet()
                    throws Exception
Its possible that a facet will be empty on the decode if it contained only EL text. So its wrong to throw an exception when this is the case. (See TOMAHAWK-510)

Throws:
Exception

suite

public static junit.framework.Test suite()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.