public class HttpUserAgentTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
HttpUserAgentTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResourceHeader(String resourceName,
String header) |
protected String |
asBytes(String s) |
protected void |
assertEqualQueries(String query1,
String query2) |
protected void |
assertEquals(String comment,
byte[] expected,
byte[] actual) |
protected void |
assertEquals(String comment,
Object[] expected,
Object[] found) |
protected void |
assertImplement(String comment,
Object[] objects,
Class expectedClass) |
protected void |
assertImplements(String comment,
Object object,
Class expectedClass) |
protected void |
assertMatchingSet(String comment,
Object[] expected,
Enumeration found) |
static void |
assertMatchingSet(String comment,
Object[] expected,
Object[] found) |
static String |
asText(Object[] args) |
protected void |
defineResource(String resourceName,
byte[] value,
String contentType) |
protected void |
defineResource(String resourceName,
PseudoServlet servlet) |
protected void |
defineResource(String resourceName,
String value) |
protected void |
defineResource(String resourceName,
String value,
int statusCode) |
protected void |
defineResource(String resourceName,
String value,
String contentType) |
protected void |
defineWebPage(String pageName,
String body)
define a Web Page with the given page name and boy adding the html and body tags with pageName as the title of the page
|
protected void |
defineWebPage(String xmlns,
String pageName,
String body)
define a Web Page with the given page name and boy adding the html and body tags with pageName as the title of the page
use the given xml names space if it is not null
|
protected String |
getHostPath() |
protected int |
getHostPort() |
protected PseudoServer |
getServer() |
protected void |
mapToClasspath(String directory) |
protected void |
setResourceCharSet(String resourceName,
String setName,
boolean reportCharSet) |
protected void |
setServerDebug(boolean enabled) |
void |
setUp() |
void |
tearDown() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failSamepublic HttpUserAgentTest(String name)
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void defineResource(String resourceName, PseudoServlet servlet)
protected void setResourceCharSet(String resourceName, String setName, boolean reportCharSet)
protected void defineWebPage(String xmlns, String pageName, String body)
xmlns - pageName - body - protected void defineWebPage(String pageName, String body)
pageName - body - protected void mapToClasspath(String directory)
protected PseudoServer getServer()
protected void setServerDebug(boolean enabled)
protected String getHostPath()
protected int getHostPort()
throws IOException
IOExceptionprotected void assertImplement(String comment, Object[] objects, Class expectedClass)
protected void assertImplements(String comment, Object object, Class expectedClass)
protected void assertMatchingSet(String comment, Object[] expected, Enumeration found)
public static void assertMatchingSet(String comment, Object[] expected, Object[] found)
protected void assertEquals(String comment, byte[] expected, byte[] actual)
Copyright © 2012. All Rights Reserved.