|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.struts.taglib.html.TestHtmlTag
public class TestHtmlTag
Unit tests for the HtmlTag.
Constructor Summary | |
---|---|
TestHtmlTag(String theName)
Defines the testcase name for JUnit. |
Method Summary | |
---|---|
static void |
main(String[] theArgs)
Start the tests. |
void |
setUp()
Set up mock objects. |
static junit.framework.Test |
suite()
|
void |
testInvalidCountry()
Test an invalid "country" |
void |
testInvalidLanguage()
Test an invalid "language" |
void |
testValidLangFalse()
Test the "lang" attribute with valid characters. |
void |
testValidLangTrue()
Test the "lang" attribute with valid characters. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestHtmlTag(String theName)
theName
- the testcase's name.Method Detail |
---|
public static void main(String[] theArgs)
theArgs
- the arguments. Not usedpublic static junit.framework.Test suite()
TestSuite
) that includes all methods
starting with "test"public void setUp()
setUp
in class junit.framework.TestCase
public void testValidLangTrue()
public void testValidLangFalse()
public void testInvalidLanguage()
public void testInvalidCountry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |