java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.cactus.internal.AbstractCactusTestCase
org.apache.cactus.ServletTestCase
org.apache.cactus.JspTestCase
org.apache.struts.taglib.html.TestOptionTag1
- All Implemented Interfaces:
- org.apache.cactus.internal.CactusTestCase, junit.framework.Test
- public class TestOptionTag1
- extends org.apache.cactus.JspTestCase
Suite of unit tests for the
org.apache.struts.taglib.html.MultiboxTag class.
NOTE - These tests were separated into 4 files each because of the
size of the jsp. (not playing well with Tomcat 3.3
These tests are numbered as such:
1 thru 4 test a single checkbox
TestOptionTag1 - These test validate true (a value was in the array) on our form.
TestMultiboxTag2 - Same as 1, but using BodyContent instead of value attribute
TestMultiboxTag3 - These test validate true (a value was in the array) on our form.
TestMultiboxTag4 - Same as 3, but using BodyContent instead of value attribute
5 thru 8 test multiple checkboxes
TestMultiboxTag5 - These test validate true (a value was in the array) on our form.
TestMultiboxTag6 - Same as 5, but using BodyContent instead of value attribute
TestMultiboxTag7 - These test validate true (a value was in the array) on our form.
TestMultiboxTag8 - Same as 7, but using BodyContent instead of value attribute
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
TestOptionTag1
public TestOptionTag1(java.lang.String theName)
- Defines the testcase name for JUnit.
main
public static void main(java.lang.String[] theArgs)
- Start the tests.
suite
public static junit.framework.Test suite()
runMyTest
private void runMyTest(java.lang.String whichTest,
java.lang.String locale)
throws java.lang.Exception
testOptionBodySelected
public void testOptionBodySelected()
throws java.lang.Exception
testOptionBodyNotSelected
public void testOptionBodyNotSelected()
throws java.lang.Exception
testOptionBodySelectedDisabled_true
public void testOptionBodySelectedDisabled_true()
throws java.lang.Exception
testOptionBodyNotSelectedDisabled_true
public void testOptionBodyNotSelectedDisabled_true()
throws java.lang.Exception
testOptionBodySelectedDisabled_false
public void testOptionBodySelectedDisabled_false()
throws java.lang.Exception
testOptionBodyNotSelectedDisabled_false
public void testOptionBodyNotSelectedDisabled_false()
throws java.lang.Exception
testOptionBodySelectedDisabled_other
public void testOptionBodySelectedDisabled_other()
throws java.lang.Exception
testOptionBodyNotSelectedDisabled_other
public void testOptionBodyNotSelectedDisabled_other()
throws java.lang.Exception
testOptionKeySelected
public void testOptionKeySelected()
throws java.lang.Exception
testOptionKeyNotSelected
public void testOptionKeyNotSelected()
throws java.lang.Exception
testOptionKeySelectedAlternateBundle
public void testOptionKeySelectedAlternateBundle()
throws java.lang.Exception
testOptionKeyNotSelectedAlternateBundle
public void testOptionKeyNotSelectedAlternateBundle()
throws java.lang.Exception
testOptionKeySelectedLocale_fr
public void testOptionKeySelectedLocale_fr()
throws java.lang.Exception
testOptionKeyNotSelectedLocale_fr
public void testOptionKeyNotSelectedLocale_fr()
throws java.lang.Exception
testOptionKeySelectedAlternateBundleLocale_fr
public void testOptionKeySelectedAlternateBundleLocale_fr()
throws java.lang.Exception
testOptionKeyNotSelectedAlternateBundleLocale_fr
public void testOptionKeyNotSelectedAlternateBundleLocale_fr()
throws java.lang.Exception