Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.struts.taglib.html
Class TestOptionTag1  view TestOptionTag1 download TestOptionTag1.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.cactus.internal.AbstractCactusTestCase
              extended byorg.apache.cactus.ServletTestCase
                  extended byorg.apache.cactus.JspTestCase
                      extended byorg.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


Field Summary
 
Fields inherited from class org.apache.cactus.JspTestCase
out, pageContext
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Fields inherited from class org.apache.cactus.internal.AbstractCactusTestCase
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestOptionTag1(java.lang.String theName)
          Defines the testcase name for JUnit.
 
Method Summary
static void main(java.lang.String[] theArgs)
          Start the tests.
private  void runMyTest(java.lang.String whichTest, java.lang.String locale)
           
static junit.framework.Test suite()
           
 void testOptionBodyNotSelected()
           
 void testOptionBodyNotSelectedDisabled_false()
           
 void testOptionBodyNotSelectedDisabled_other()
           
 void testOptionBodyNotSelectedDisabled_true()
           
 void testOptionBodySelected()
           
 void testOptionBodySelectedDisabled_false()
           
 void testOptionBodySelectedDisabled_other()
           
 void testOptionBodySelectedDisabled_true()
           
 void testOptionKeyNotSelected()
           
 void testOptionKeyNotSelectedAlternateBundle()
           
 void testOptionKeyNotSelectedAlternateBundleLocale_fr()
           
 void testOptionKeyNotSelectedLocale_fr()
           
 void testOptionKeySelected()
           
 void testOptionKeySelectedAlternateBundle()
           
 void testOptionKeySelectedAlternateBundleLocale_fr()
           
 void testOptionKeySelectedLocale_fr()
           
 
Methods inherited from class org.apache.cactus.JspTestCase
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, setUp, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cactus.internal.CactusTestCase
runBareServer
 

Constructor Detail

TestOptionTag1

public TestOptionTag1(java.lang.String theName)
Defines the testcase name for JUnit.

Method Detail

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