org.apache.myfaces.component.html.ext
Class HtmlSelectManyCheckboxRendererCactus
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.cactus.internal.AbstractCactusTestCase
org.apache.cactus.ServletTestCase
org.apache.myfaces.component.html.ext.HtmlSelectManyCheckboxRendererCactus
- All Implemented Interfaces:
- junit.framework.Test, org.apache.cactus.internal.CactusTestCase
public class HtmlSelectManyCheckboxRendererCactus
- extends org.apache.cactus.ServletTestCase
Cactus test for the rendering of the
HtmlSelectBooleanCheckbox
component. Various combinations of layouts (lineDirection,pageDirection)
and layoutWidths are tested.
TODO: Test the markup generated when SelectItemGroup's are used in
combination with different layouts and layoutWidths.
- Author:
- Ken Weiner
Fields inherited from class org.apache.cactus.ServletTestCase |
config, request, response, session |
Methods inherited from class org.apache.cactus.ServletTestCase |
createProtocolHandler |
Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase |
runBare, runBareServer |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, 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 interface org.apache.cactus.internal.CactusTestCase |
runBareServer |
HtmlSelectManyCheckboxRendererCactus
public HtmlSelectManyCheckboxRendererCactus()
setUp
public void setUp()
throws Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
Exception
beginEncodeWithLineDirection
public void beginEncodeWithLineDirection(org.apache.cactus.WebRequest request)
testEncodeWithLineDirection
public void testEncodeWithLineDirection()
throws IOException
- Throws:
IOException
endEncodeWithLineDirection
public void endEncodeWithLineDirection(org.apache.cactus.WebResponse response)
beginEncodeWithPageDirection
public void beginEncodeWithPageDirection(org.apache.cactus.WebRequest request)
testEncodeWithPageDirection
public void testEncodeWithPageDirection()
throws IOException
- Throws:
IOException
endEncodeWithPageDirection
public void endEncodeWithPageDirection(org.apache.cactus.WebResponse response)
beginEncodeWithLineDirectionAndLayoutWidth
public void beginEncodeWithLineDirectionAndLayoutWidth(org.apache.cactus.WebRequest request)
testEncodeWithLineDirectionAndLayoutWidth
public void testEncodeWithLineDirectionAndLayoutWidth()
throws IOException
- Throws:
IOException
endEncodeWithLineDirectionAndLayoutWidth
public void endEncodeWithLineDirectionAndLayoutWidth(org.apache.cactus.WebResponse response)
beginEncodeWithPageDirectionAndLayoutWidth
public void beginEncodeWithPageDirectionAndLayoutWidth(org.apache.cactus.WebRequest request)
testEncodeWithPageDirectionAndLayoutWidth
public void testEncodeWithPageDirectionAndLayoutWidth()
throws IOException
- Throws:
IOException
endEncodeWithPageDirectionAndLayoutWidth
public void endEncodeWithPageDirectionAndLayoutWidth(org.apache.cactus.WebResponse response)
getSelections
protected List getSelections(int numSelected)
- Helper method to generate list of selected checkbox
values. The values will be strings in the form
"Value-X" where X is the 0-based index of the value.
- Parameters:
numSelected
- the number of values requested
- Returns:
- the list of selected checkbox values
getSelectManyCheckboxSelections
protected List getSelectManyCheckboxSelections(int numItems)
- Helper method to generate list of select items that
represent the selection of checkboxes.
The select items will have labels and values in the form
"Label-X", "Value-X" where X is the 0-based index of
the label or value.
- Parameters:
numItems
- the number of checkboxes requested
- Returns:
- the list of checkbox select items
tearDown
public void tearDown()
- Overrides:
tearDown
in class junit.framework.TestCase
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.