|
|||||||||||
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.codehaus.plexus.PlexusTestCase | +--org.codehaus.ivory.plexus.IvoryTestCase
A generic test-case for testing Ivory and other SOAP services for Plexus.
Field Summary | |
static java.lang.String |
VERBOSE_KEY
|
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir |
Constructor Summary | |
IvoryTestCase(java.lang.String name)
|
Method Summary | |
protected void |
assertIsXml(java.lang.String response)
|
void |
assertStringInBody(java.lang.String body,
java.lang.String searchfor)
Assert that the response contains a string. |
protected void |
assertStringInBody(com.meterware.httpunit.WebRequest request,
java.lang.String searchfor)
Assert that a named string is in the request body of the. |
void |
assertStringInBody(com.meterware.httpunit.WebResponse response,
java.lang.String searchfor)
Assert that the response contains a string. |
void |
assertStringInBody(com.meterware.httpunit.WebResponse response,
java.lang.String searchfor,
java.lang.String url)
Assert that the response contains a string. |
protected void |
assertStringNotInBody(java.lang.String body,
java.lang.String searchfor)
Assert that a string is not in a response. |
protected void |
assertStringNotInBody(com.meterware.httpunit.WebRequest request,
java.lang.String searchfor)
Assert that a string is not in the response to a request. |
protected void |
assertStringNotInBody(com.meterware.httpunit.WebResponse response,
java.lang.String searchfor)
Assert that a string is not in a response. |
protected void |
assertStringNotInBody(com.meterware.httpunit.WebResponse response,
java.lang.String searchfor,
java.lang.String url)
Assert that a string is not in a response. |
void |
assertValidWSDL(java.lang.String serviceName,
java.lang.String method)
Verifies that the service generates WSDL. |
void |
assertValidWSDL(java.lang.String serviceName,
java.lang.String[] methods)
Verifies that the service generates WSDL. |
protected void |
expectErrorCode(com.meterware.httpunit.WebRequest request,
int errorCode,
java.lang.String errorText)
Here we expect an errorCode other than 200, and look for it checking for text is omitted as it doesnt work. |
java.lang.String |
getWSDL(java.lang.String serviceName)
|
boolean |
isVerbose()
|
protected com.meterware.httpunit.WebResponse |
makeRequest(com.meterware.httpunit.WebRequest request)
Make a request in a new session. |
protected com.meterware.servletunit.ServletUnitClient |
newClient()
|
void |
setUp()
|
void |
setVerbose(boolean b)
|
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, lookup, lookup, release, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String VERBOSE_KEY
Constructor Detail |
public IvoryTestCase(java.lang.String name)
Method Detail |
public void setUp() throws java.lang.Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
java.lang.Exception
protected com.meterware.servletunit.ServletUnitClient newClient() throws java.lang.Exception
java.lang.Exception
public boolean isVerbose()
public void setVerbose(boolean b)
b
- public void assertStringInBody(java.lang.String body, java.lang.String searchfor) throws java.io.IOException
searchfor
-
java.io.IOException
public void assertStringInBody(com.meterware.httpunit.WebResponse response, java.lang.String searchfor) throws java.io.IOException
response
- searchfor
-
java.io.IOException
public void assertStringInBody(com.meterware.httpunit.WebResponse response, java.lang.String searchfor, java.lang.String url) throws java.io.IOException
response
- searchfor
- url
-
java.io.IOException
protected void assertStringInBody(com.meterware.httpunit.WebRequest request, java.lang.String searchfor) throws java.io.IOException, org.xml.sax.SAXException
request
- what we asksearchfor
- string to look for
java.io.IOException
- when the fetch fails
org.xml.sax.SAXException
protected com.meterware.httpunit.WebResponse makeRequest(com.meterware.httpunit.WebRequest request) throws java.io.IOException, org.xml.sax.SAXException
request
- request to make
java.io.IOException
org.xml.sax.SAXException
protected void assertStringNotInBody(java.lang.String body, java.lang.String searchfor) throws java.io.IOException
searchfor
-
java.io.IOException
protected void assertStringNotInBody(com.meterware.httpunit.WebResponse response, java.lang.String searchfor) throws java.io.IOException
response
- searchfor
-
java.io.IOException
protected void assertStringNotInBody(com.meterware.httpunit.WebResponse response, java.lang.String searchfor, java.lang.String url) throws java.io.IOException
response
- searchfor
- url
-
java.io.IOException
protected void assertStringNotInBody(com.meterware.httpunit.WebRequest request, java.lang.String searchfor) throws java.io.IOException, org.xml.sax.SAXException
request
- searchfor
-
java.io.IOException
org.xml.sax.SAXException
protected void assertIsXml(java.lang.String response)
protected void expectErrorCode(com.meterware.httpunit.WebRequest request, int errorCode, java.lang.String errorText) throws java.net.MalformedURLException, java.io.IOException, org.xml.sax.SAXException
request
- errorCode
- errorText
- optional text string to search for
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
public void assertValidWSDL(java.lang.String serviceName, java.lang.String method) throws java.lang.Exception
method
-
java.lang.Exception
public java.lang.String getWSDL(java.lang.String serviceName) throws java.lang.Exception
java.lang.Exception
public void assertValidWSDL(java.lang.String serviceName, java.lang.String[] methods) throws java.lang.Exception
methods
-
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |