|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.testsuite.ClientTest
public abstract class ClientTest
Provides a predefined client test with test suite using a local and an HTTP client.
| Constructor Summary | |
|---|---|
ClientTest()
|
|
| Method Summary | |
|---|---|
protected void |
configureHttpClient(String address,
int port,
String context)
Configures the HTTP client. |
protected void |
configureLocalClient(String packagePath)
Configures the local client. |
protected String |
getAddress()
Gets the server address. |
protected String |
getAuthenticationProvider()
Gets the controller's authentication provider. |
protected String |
getContext()
Gets the server context. |
protected String |
getLoggingProvider()
Gets the controller's logging provider. |
protected String |
getPackagePath()
Gets the controller's package path. |
protected int |
getPort()
Gets the server port. |
protected RequestTestSuite |
getTestSuite()
Gets the test suite. |
void |
setUp()
Initializes a test suite, using a local client and an HTTP client |
void |
testAuthentication()
Tests a request with authorization. |
void |
testBasics()
Tests a simple request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientTest()
| Method Detail |
|---|
protected void configureHttpClient(String address,
int port,
String context)
address - The server address.port - The server port.context - The server contextprotected void configureLocalClient(String packagePath)
packagePath - The controller's package path.protected String getAddress()
protected int getPort()
protected String getContext()
protected String getPackagePath()
protected String getLoggingProvider()
protected String getAuthenticationProvider()
protected RequestTestSuite getTestSuite()
public void setUp()
throws Exception
Initializes a test suite, using a local client and an HTTP client
Exception - if an unexpected exception occurs
public void testBasics()
throws Exception
Exception - if an unexpected exception occurs
public void testAuthentication()
throws Exception
Exception - if an unexpected exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||