Interface ServerProviderConformanceTest.Adapter<T extends ServerProvider,U,V>

Type Parameters:
T - The ServerProvider under test.
U - An object that represents a remote client that can connect to the server.
V - An object that holds the response generated by the client when executing a request.
Enclosing class:
ServerProviderConformanceTest

public static interface ServerProviderConformanceTest.Adapter<T extends ServerProvider,U,V>

This interface declares the adapter between the general conformance test and an actual ServerProvider implementation. Every test runs as follows:

  1. newConfigModule() is called to bind server-specific configuration.
  2. getServerProviderClass() is called, and guice is asked to construct an instance of that class.
  3. newClient(ServerProvider) is called one or more times as required by the test case.
  4. executeRequest(Object, boolean) is called one or more times per client, as required by the test case.
  5. validateResponse(Object) is called once per call to executeRequest(Object, boolean).
  • Method Details