|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.cactus.AbstractTestCase | +--org.apache.cactus.TestAbstractTestCase_InterceptorTestCase | +--org.apache.cactus.TestAbstractTestCase
Unit tests of the AbstractTestCase
class.
Fields inherited from class org.apache.cactus.AbstractTestCase |
currentTestMethod |
Constructor Summary | |
TestAbstractTestCase(java.lang.String theName)
Defines the testcase name for JUnit. |
Method Summary | |
void |
beginBeginMethodBadParamNumber(WebRequest theRequest,
java.lang.String theString)
Test that when a begin method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
|
void |
beginBeginMethodBadParamType(java.lang.String theDummy)
Test that when a begin method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
|
java.lang.String |
beginBeginMethodBadReturnType(WebRequest theRequest)
Test that when a begin method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception
is returned.
|
void |
beginBeginMethodOK1(ServletTestRequest theRequest)
Verify that the deprecated begin method with a ServletTestRequest parameter is still supported. |
void |
beginBeginMethodOK2(WebRequest theRequest)
Verify that the begin method with a WebRequest parameter is called correctly. |
void |
endEndMethodBadParamNumber(WebResponse theResponse,
java.lang.String theDummy)
Test that when an end method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
|
void |
endEndMethodBadParamType(java.lang.String theDummy)
Test that when an end method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
|
java.lang.String |
endEndMethodBadReturnType(WebResponse theResponse)
Test that when an end method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception
is returned.
|
void |
endEndMethodOK1(WebResponse theResponse)
Test that the end method is called correctly when it's signature contains a org.apache.cactus.WebResponse parameter. |
void |
endEndMethodOK2(com.meterware.httpunit.WebResponse theResponse)
Test that the end method is called correctly when it's signature contains a com.meterware.httpunit.WebResponse parameter.
|
void |
endEndMethodOK3(java.net.HttpURLConnection theResponse)
Test that the deprecated end method with the HttpURLConnection parameter can still be called correctly. |
static void |
main(java.lang.String[] theArgs)
Start the tests. |
static junit.framework.Test |
suite()
|
void |
testBeginMethodBadParamNumber()
Test that when a begin method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
|
void |
testBeginMethodBadParamType()
Test that when a begin method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
|
void |
testBeginMethodBadReturnType()
Test that when a begin method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception
is returned.
|
void |
testBeginMethodNotPublic()
Test that when a begin method for a given test is not declared public a AssertionFailedError exception is returned.
|
void |
testBeginMethodOK1()
Verify that the deprecated begin method with a ServletTestRequest parameter is still supported. |
void |
testBeginMethodOK2()
Verify that the begin method with a WebRequest parameter is called correctly. |
void |
testEndMethodBadParamNumber()
Test that when an end method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
|
void |
testEndMethodBadParamType()
Test that when an end method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
|
void |
testEndMethodBadReturnType()
Test that when an end method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception
is returned.
|
void |
testEndMethodNotPublic()
Test that when an end method for a given test is not declared public a AssertionFailedError exception is returned.
|
void |
testEndMethodOK1()
Test that the end method is called correctly when it's signature contains a org.apache.cactus.WebResponse parameter. |
void |
testEndMethodOK2()
Test that the end method is called correctly when it's signature contains a com.meterware.httpunit.WebResponse parameter.
|
void |
testEndMethodOK3()
Test that the deprecated end method with the HttpURLConnection parameter can still be called correctly. |
Methods inherited from class org.apache.cactus.AbstractTestCase |
runBare, runBareServerTest |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, name, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestAbstractTestCase(java.lang.String theName)
theName
- the testcase's name.Method Detail |
public static void main(java.lang.String[] theArgs)
theArgs
- the arguments. Not usedpublic static junit.framework.Test suite()
TestSuite
) that includes all methods
starting with "test"public java.lang.String beginBeginMethodBadReturnType(WebRequest theRequest)
AssertionFailedError
exception
is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testBeginMethodBadReturnType()
AssertionFailedError
exception
is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testBeginMethodNotPublic()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void beginBeginMethodBadParamType(java.lang.String theDummy)
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testBeginMethodBadParamType()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void beginBeginMethodBadParamNumber(WebRequest theRequest, java.lang.String theString)
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testBeginMethodBadParamNumber()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void beginBeginMethodOK1(ServletTestRequest theRequest)
ServletTestRequest
parameter is still supported.public void testBeginMethodOK1()
ServletTestRequest
parameter is still supported.public void beginBeginMethodOK2(WebRequest theRequest)
WebRequest
parameter is called correctly.public void testBeginMethodOK2()
WebRequest
parameter is called correctly.public void testEndMethodBadReturnType()
AssertionFailedError
exception
is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public java.lang.String endEndMethodBadReturnType(WebResponse theResponse)
AssertionFailedError
exception
is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testEndMethodNotPublic()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testEndMethodBadParamType()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void endEndMethodBadParamType(java.lang.String theDummy)
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testEndMethodBadParamNumber()
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void endEndMethodBadParamNumber(WebResponse theResponse, java.lang.String theDummy)
AssertionFailedError
exception is returned.
Note: the assert is done in the
TestAbstractTestCase_InterceptorTestCase
class.public void testEndMethodOK1()
org.apache.cactus.WebResponse
parameter.public void endEndMethodOK1(WebResponse theResponse)
org.apache.cactus.WebResponse
parameter.public void testEndMethodOK2()
com.meterware.httpunit.WebResponse
parameter.
Note: We need the Httpunit jar and an XML parser jar on the classpath
for this testpublic void endEndMethodOK2(com.meterware.httpunit.WebResponse theResponse)
com.meterware.httpunit.WebResponse
parameter.
Note: We need the Httpunit jar and an XML parser jar on the classpath
for this testpublic void testEndMethodOK3()
HttpURLConnection
parameter can still be called correctly.public void endEndMethodOK3(java.net.HttpURLConnection theResponse)
HttpURLConnection
parameter can still be called correctly.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |