org.apache.myfaces.test
Class AbstractTomahawkViewControllerTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.shale.test.base.AbstractJsfTestCase
              extended by org.apache.shale.test.base.AbstractViewControllerTestCase
                  extended by org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractTreeTestCase, DivRendererTest, HtmlButtonRendererTest, HtmlCalendarRendererTest, HtmlCheckboxRendererTest, HtmlCommandButtonTest, HtmlDataTableTest, HtmlDateRendererTest, HtmlFileUploadRendererTest, HtmlGraphicImageTest, HtmlGridRendererTest, HtmlGroupRendererTest, HtmlImageRendererTest, HtmlInputHiddenTest, HtmlInputSecretTest, HtmlInputTextareaTest, HtmlInputTextTest, HtmlLayoutRendererTest, HtmlLinkRendererTest, HtmlListboxRendererTest, HtmlListRendererTest, HtmlMenuRendererTest, HtmlMessageRendererTest, HtmlMessagesRendererTest, HtmlMessagesTest, HtmlMessageTest, HtmlNavigationRendererTest, HtmlNewspaperTableRendererTest, HtmlOutputLabelTest, HtmlOutputTextTest, HtmlPanelGridTest, HtmlPanelGroupTest, HtmlPicklistRendererTest, HtmlRadioRendererTest, HtmlSecretRendererTest, HtmlSelectBooleanCheckboxTest, HtmlSelectManyCheckboxTest, HtmlSelectManyListboxTest, HtmlSelectManyMenuTest, HtmlSelectOneListboxTest, HtmlSelectOneMenuTest, HtmlSelectOneRadioTest, HtmlSwapImageRendererTest, HtmlTabbedPaneRendererTest, HtmlTableRendererTest, HtmlTagRendererTest, HtmlTextareaRendererTest, HtmlTextHelpRendererTest, HtmlTextRendererTest, HtmlTreeCheckboxRendererTest, HtmlTreeImageCommandLinkRendererTest, HtmlTreeRendererTest, SelectOneCountryRendererTest, SelectOneLanguageRendererTest, SelectOneRowRendererTest, StylesheetRendererTest, ToggleGroupRendererTest, ToggleLinkRendererTest, TogglePanelRendererTest, UISaveStateTest

public class AbstractTomahawkViewControllerTestCase
extends org.apache.shale.test.base.AbstractViewControllerTestCase

Abstract Shale Test base class, which sets up the JSF environment. If the test overrides setUp() and/or tearDown(), then those methods but call the overwitten method to insure a valid test environment.


Field Summary
 
Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
 
Constructor Summary
AbstractTomahawkViewControllerTestCase(String name)
          Construct a new instance of the test.
 
Method Summary
protected  void assertIdExists(String id)
          Verify the following: id is not null Response is complete Responce contains the id
protected  void setUp()
          Setup the test environment, including the following: Set the Application Map. Set a response writer Add Tomahawk's renderers to the faces context.
protected  void tearDown()
          Tear down the test environment.
 
Methods inherited from class org.apache.shale.test.base.AbstractViewControllerTestCase
checkMessageCount, checkMessageCount
 
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

AbstractTomahawkViewControllerTestCase

public AbstractTomahawkViewControllerTestCase(String name)
Construct a new instance of the test.

Parameters:
name - Name of the test.
Method Detail

setUp

protected void setUp()
              throws Exception
Setup the test environment, including the following:

Overrides:
setUp in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Tear down the test environment.

Overrides:
tearDown in class org.apache.shale.test.base.AbstractJsfTestCase
Throws:
Exception

assertIdExists

protected void assertIdExists(String id)
Verify the following:

Parameters:
id - ID to verify


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