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.TaglibTestBase
org.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.
| 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 |
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
TestMessageTag3
public TestMessageTag3(java.lang.String theName)
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)