|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.wink.test.mock.SpringAwareTestCase org.apache.wink.test.mock.SpringMockServletInvocationTest
public abstract class SpringMockServletInvocationTest
Base class for tests using mock servlet invocation (= invoking directly servlet's method with Spring mock request/response).
Field Summary |
---|
Fields inherited from class org.apache.wink.test.mock.SpringAwareTestCase |
---|
applicationContext, servletContext |
Constructor Summary | |
---|---|
SpringMockServletInvocationTest()
|
Method Summary | |
---|---|
org.springframework.mock.web.MockHttpServletResponse |
invoke(org.springframework.mock.web.MockHttpServletRequest request)
Passes the test to the servlet instance simulating AS behaviour. |
protected void |
setUp()
|
Methods inherited from class org.apache.wink.test.mock.SpringAwareTestCase |
---|
getAdditionalContextNames, getPackagePath |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpringMockServletInvocationTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class SpringAwareTestCase
java.lang.Exception
public org.springframework.mock.web.MockHttpServletResponse invoke(org.springframework.mock.web.MockHttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException
request
- the filled request
java.io.IOException
- io error
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |