org.apache.axis2.transport.testkit.tests.echo
Class RequestResponseMessageTestCase<M,N>

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.axis2.transport.testkit.tests.ManagedTestCase
              extended by org.apache.axis2.transport.testkit.tests.MessageTestCase
                  extended by org.apache.axis2.transport.testkit.tests.echo.RequestResponseMessageTestCase<M,N>
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
XMLRequestResponseMessageTestCase

public abstract class RequestResponseMessageTestCase<M,N>
extends MessageTestCase


Field Summary
 
Fields inherited from class org.apache.axis2.transport.testkit.tests.MessageTestCase
contentType, options
 
Constructor Summary
RequestResponseMessageTestCase(RequestResponseChannel channel, RequestResponseTestClient<M,N> client, InOutEndpoint endpoint, javax.mail.internet.ContentType contentType, java.lang.String charset, java.lang.Object... resources)
           
 
Method Summary
protected abstract  void checkResponse(M request, N response)
           
protected  void doRunTest()
           
protected abstract  M prepareRequest()
           
 
Methods inherited from class org.apache.axis2.transport.testkit.tests.MessageTestCase
runTest
 
Methods inherited from class org.apache.axis2.transport.testkit.tests.ManagedTestCase
addResource, getId, getName, getNameComponents, getResourceSet, getTestClass, init, setUp, tearDown, toString
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, setName
 
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

RequestResponseMessageTestCase

public RequestResponseMessageTestCase(RequestResponseChannel channel,
                                      RequestResponseTestClient<M,N> client,
                                      InOutEndpoint endpoint,
                                      javax.mail.internet.ContentType contentType,
                                      java.lang.String charset,
                                      java.lang.Object... resources)
Method Detail

doRunTest

protected void doRunTest()
                  throws java.lang.Throwable
Specified by:
doRunTest in class MessageTestCase
Throws:
java.lang.Throwable

prepareRequest

protected abstract M prepareRequest()
                             throws java.lang.Exception
Throws:
java.lang.Exception

checkResponse

protected abstract void checkResponse(M request,
                                      N response)
                               throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.