Base class for tests using LocalTestServer. Note that the test server will be set up before each individual tests and teared down afterwards. Use this base class exclusively for tests that require the server. If you have some tests that require the server and others that don't, split them in two different classes.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
setUp() Prepares the local server for testing. |
Methods inherited from class | Name |
---|---|
class BasicServerTestBase |
tearDown |
Prepares the local server for testing. Derived classes that override this
method MUST call the implementation here. That SHOULD be done at the
beginning of the overriding method.
Derived methods can modify for example the default parameters being set
up, or the interceptors.
null
in a
finally{}
block to force re-creation for subsequent tests. Of
course that shouldn't be done with the test server, or only after shutting
that down.