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

Quick Search    Search Deep

org.apache.struts.taglib.bean
Class TestMessageTag3  view TestMessageTag3 download TestMessageTag3.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.TaglibTestBase
                          extended byorg.apache.struts.taglib.bean.TestMessageTag3
All Implemented Interfaces:
org.apache.cactus.internal.CactusTestCase, junit.framework.Test

public class TestMessageTag3
extends org.apache.struts.taglib.TaglibTestBase

These tests attempt to cover every single possible configuration of the org.apache.struts.taglib.bean.MessageTag I've tried to describe what I'm testing as best as possible by the method names. To see how I'm testing, refer to the jsp file that these tests forward to. All of these tests depend on a value being correctly written on the repose, then checked here in endXXX method.


Field Summary
protected static java.lang.String TEST_KEY
           
protected static java.lang.String TEST_VAL
           
 
Fields inherited from class org.apache.struts.taglib.TaglibTestBase
 
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
TestMessageTag3(java.lang.String theName)
           
 
Method Summary
 void endMessageTag3ArgKeyApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeyApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeyNoScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeyNoScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeyRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeyRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeySessionScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgKeySessionScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameNoScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameNoScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyNoScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyNoScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertyRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertySessionScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNamePropertySessionScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameSessionScopeAlternateBundle(org.apache.cactus.WebResponse response)
           
 void endMessageTag3ArgNameSessionScopeDefaultBundle(org.apache.cactus.WebResponse response)
           
private  void formatAndTest(java.lang.String compare, java.lang.String output)
           
static void main(java.lang.String[] theArgs)
          Start the tests.
private  void runMyTest(java.lang.String whichTest, java.util.Locale locale)
           
static junit.framework.Test suite()
           
 void testMessageTag3ArgKeyApplicationScopeAlternateBundle()
           
 void testMessageTag3ArgKeyApplicationScopeDefaultBundle()
           
 void testMessageTag3ArgKeyNoScopeAlternateBundle()
           
 void testMessageTag3ArgKeyNoScopeDefaultBundle()
           
 void testMessageTag3ArgKeyRequestScopeAlternateBundle()
           
 void testMessageTag3ArgKeyRequestScopeDefaultBundle()
           
 void testMessageTag3ArgKeySessionScopeAlternateBundle()
           
 void testMessageTag3ArgKeySessionScopeDefaultBundle()
           
 void testMessageTag3ArgNameApplicationScopeAlternateBundle()
           
 void testMessageTag3ArgNameApplicationScopeDefaultBundle()
           
 void testMessageTag3ArgNameNoScopeAlternateBundle()
           
 void testMessageTag3ArgNameNoScopeDefaultBundle()
           
 void testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle()
           
 void testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle()
           
 void testMessageTag3ArgNamePropertyNoScopeAlternateBundle()
           
 void testMessageTag3ArgNamePropertyNoScopeDefaultBundle()
           
 void testMessageTag3ArgNamePropertyRequestScopeAlternateBundle()
           
 void testMessageTag3ArgNamePropertyRequestScopeDefaultBundle()
           
 void testMessageTag3ArgNamePropertySessionScopeAlternateBundle()
           
 void testMessageTag3ArgNamePropertySessionScopeDefaultBundle()
           
 void testMessageTag3ArgNameRequestScopeAlternateBundle()
           
 void testMessageTag3ArgNameRequestScopeDefaultBundle()
           
 void testMessageTag3ArgNameSessionScopeAlternateBundle()
           
 void testMessageTag3ArgNameSessionScopeDefaultBundle()
           
 
Methods inherited from class org.apache.struts.taglib.TaglibTestBase
assertResults, fail, replace, runTest
 
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
 
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
 

Field Detail

TEST_KEY

protected static final java.lang.String TEST_KEY
See Also:
Constant Field Values

TEST_VAL

protected static final java.lang.String TEST_VAL
See Also:
Constant Field Values
Constructor Detail

TestMessageTag3

public TestMessageTag3(java.lang.String theName)
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.util.Locale locale)
                throws java.lang.Exception

formatAndTest

private void formatAndTest(java.lang.String compare,
                           java.lang.String output)

testMessageTag3ArgKeyNoScopeDefaultBundle

public void testMessageTag3ArgKeyNoScopeDefaultBundle()
                                               throws java.lang.Exception

endMessageTag3ArgKeyNoScopeDefaultBundle

public void endMessageTag3ArgKeyNoScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeyApplicationScopeDefaultBundle

public void testMessageTag3ArgKeyApplicationScopeDefaultBundle()
                                                        throws java.lang.Exception

endMessageTag3ArgKeyApplicationScopeDefaultBundle

public void endMessageTag3ArgKeyApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeySessionScopeDefaultBundle

public void testMessageTag3ArgKeySessionScopeDefaultBundle()
                                                    throws java.lang.Exception

endMessageTag3ArgKeySessionScopeDefaultBundle

public void endMessageTag3ArgKeySessionScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeyRequestScopeDefaultBundle

public void testMessageTag3ArgKeyRequestScopeDefaultBundle()
                                                    throws java.lang.Exception

endMessageTag3ArgKeyRequestScopeDefaultBundle

public void endMessageTag3ArgKeyRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeyNoScopeAlternateBundle

public void testMessageTag3ArgKeyNoScopeAlternateBundle()
                                                 throws java.lang.Exception

endMessageTag3ArgKeyNoScopeAlternateBundle

public void endMessageTag3ArgKeyNoScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeyApplicationScopeAlternateBundle

public void testMessageTag3ArgKeyApplicationScopeAlternateBundle()
                                                          throws java.lang.Exception

endMessageTag3ArgKeyApplicationScopeAlternateBundle

public void endMessageTag3ArgKeyApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeySessionScopeAlternateBundle

public void testMessageTag3ArgKeySessionScopeAlternateBundle()
                                                      throws java.lang.Exception

endMessageTag3ArgKeySessionScopeAlternateBundle

public void endMessageTag3ArgKeySessionScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgKeyRequestScopeAlternateBundle

public void testMessageTag3ArgKeyRequestScopeAlternateBundle()
                                                      throws java.lang.Exception

endMessageTag3ArgKeyRequestScopeAlternateBundle

public void endMessageTag3ArgKeyRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameNoScopeDefaultBundle

public void testMessageTag3ArgNameNoScopeDefaultBundle()
                                                throws java.lang.Exception

endMessageTag3ArgNameNoScopeDefaultBundle

public void endMessageTag3ArgNameNoScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameApplicationScopeDefaultBundle

public void testMessageTag3ArgNameApplicationScopeDefaultBundle()
                                                         throws java.lang.Exception

endMessageTag3ArgNameApplicationScopeDefaultBundle

public void endMessageTag3ArgNameApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameSessionScopeDefaultBundle

public void testMessageTag3ArgNameSessionScopeDefaultBundle()
                                                     throws java.lang.Exception

endMessageTag3ArgNameSessionScopeDefaultBundle

public void endMessageTag3ArgNameSessionScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameRequestScopeDefaultBundle

public void testMessageTag3ArgNameRequestScopeDefaultBundle()
                                                     throws java.lang.Exception

endMessageTag3ArgNameRequestScopeDefaultBundle

public void endMessageTag3ArgNameRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameNoScopeAlternateBundle

public void testMessageTag3ArgNameNoScopeAlternateBundle()
                                                  throws java.lang.Exception

endMessageTag3ArgNameNoScopeAlternateBundle

public void endMessageTag3ArgNameNoScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameApplicationScopeAlternateBundle

public void testMessageTag3ArgNameApplicationScopeAlternateBundle()
                                                           throws java.lang.Exception

endMessageTag3ArgNameApplicationScopeAlternateBundle

public void endMessageTag3ArgNameApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameSessionScopeAlternateBundle

public void testMessageTag3ArgNameSessionScopeAlternateBundle()
                                                       throws java.lang.Exception

endMessageTag3ArgNameSessionScopeAlternateBundle

public void endMessageTag3ArgNameSessionScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNameRequestScopeAlternateBundle

public void testMessageTag3ArgNameRequestScopeAlternateBundle()
                                                       throws java.lang.Exception

endMessageTag3ArgNameRequestScopeAlternateBundle

public void endMessageTag3ArgNameRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyNoScopeDefaultBundle

public void testMessageTag3ArgNamePropertyNoScopeDefaultBundle()
                                                        throws java.lang.Exception

endMessageTag3ArgNamePropertyNoScopeDefaultBundle

public void endMessageTag3ArgNamePropertyNoScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle

public void testMessageTag3ArgNamePropertyApplicationScopeDefaultBundle()
                                                                 throws java.lang.Exception

endMessageTag3ArgNamePropertyApplicationScopeDefaultBundle

public void endMessageTag3ArgNamePropertyApplicationScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertySessionScopeDefaultBundle

public void testMessageTag3ArgNamePropertySessionScopeDefaultBundle()
                                                             throws java.lang.Exception

endMessageTag3ArgNamePropertySessionScopeDefaultBundle

public void endMessageTag3ArgNamePropertySessionScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyRequestScopeDefaultBundle

public void testMessageTag3ArgNamePropertyRequestScopeDefaultBundle()
                                                             throws java.lang.Exception

endMessageTag3ArgNamePropertyRequestScopeDefaultBundle

public void endMessageTag3ArgNamePropertyRequestScopeDefaultBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyNoScopeAlternateBundle

public void testMessageTag3ArgNamePropertyNoScopeAlternateBundle()
                                                          throws java.lang.Exception

endMessageTag3ArgNamePropertyNoScopeAlternateBundle

public void endMessageTag3ArgNamePropertyNoScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle

public void testMessageTag3ArgNamePropertyApplicationScopeAlternateBundle()
                                                                   throws java.lang.Exception

endMessageTag3ArgNamePropertyApplicationScopeAlternateBundle

public void endMessageTag3ArgNamePropertyApplicationScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertySessionScopeAlternateBundle

public void testMessageTag3ArgNamePropertySessionScopeAlternateBundle()
                                                               throws java.lang.Exception

endMessageTag3ArgNamePropertySessionScopeAlternateBundle

public void endMessageTag3ArgNamePropertySessionScopeAlternateBundle(org.apache.cactus.WebResponse response)

testMessageTag3ArgNamePropertyRequestScopeAlternateBundle

public void testMessageTag3ArgNamePropertyRequestScopeAlternateBundle()
                                                               throws java.lang.Exception

endMessageTag3ArgNamePropertyRequestScopeAlternateBundle

public void endMessageTag3ArgNamePropertyRequestScopeAlternateBundle(org.apache.cactus.WebResponse response)