Package com.yahoo.jdisc.test
Class ServerProviderConformanceTest
- java.lang.Object
-
- com.yahoo.jdisc.test.ServerProviderConformanceTest
-
@Beta public abstract class ServerProviderConformanceTest extends java.lang.Object
- Author:
- Simon Thoresen Hult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServerProviderConformanceTest.Adapter<T extends ServerProvider,U,V>
This interface declares the adapter between the general conformance test and an actualServerProvider
implementation.static class
ServerProviderConformanceTest.ConformanceException
An instance of this exception is thrown within the conformance tests that imply that they will throw an exception.
-
Constructor Summary
Constructors Constructor Description ServerProviderConformanceTest()
-
Method Summary
-
-
-
Method Detail
-
testContainerNotReadyException
public abstract void testContainerNotReadyException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testBindingSetNotFoundException
public abstract void testBindingSetNotFoundException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testNoBindingSetSelectedException
public abstract void testNoBindingSetSelectedException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testBindingNotFoundException
public abstract void testBindingNotFoundException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestHandlerWithSyncCloseResponse
public abstract void testRequestHandlerWithSyncCloseResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestHandlerWithSyncWriteResponse
public abstract void testRequestHandlerWithSyncWriteResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestHandlerWithSyncHandleResponse
public abstract void testRequestHandlerWithSyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestHandlerWithAsyncHandleResponse
public abstract void testRequestHandlerWithAsyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestException
public abstract void testRequestException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionWithSyncCloseResponse
public abstract void testRequestExceptionWithSyncCloseResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionWithSyncWriteResponse
public abstract void testRequestExceptionWithSyncWriteResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestNondeterministicExceptionWithSyncHandleResponse
public abstract void testRequestNondeterministicExceptionWithSyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionBeforeResponseWriteWithSyncHandleResponse
public abstract void testRequestExceptionBeforeResponseWriteWithSyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionAfterResponseWriteWithSyncHandleResponse
public abstract void testRequestExceptionAfterResponseWriteWithSyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestNondeterministicExceptionWithAsyncHandleResponse
public abstract void testRequestNondeterministicExceptionWithAsyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionBeforeResponseWriteWithAsyncHandleResponse
public abstract void testRequestExceptionBeforeResponseWriteWithAsyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionAfterResponseCloseNoContentWithAsyncHandleResponse
public abstract void testRequestExceptionAfterResponseCloseNoContentWithAsyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestExceptionAfterResponseWriteWithAsyncHandleResponse
public abstract void testRequestExceptionAfterResponseWriteWithAsyncHandleResponse() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithSyncCompletion
public abstract void testRequestContentWriteWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithAsyncCompletion
public abstract void testRequestContentWriteWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithNondeterministicSyncFailure
public abstract void testRequestContentWriteWithNondeterministicSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithSyncFailureBeforeResponseWrite
public abstract void testRequestContentWriteWithSyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithSyncFailureAfterResponseWrite
public abstract void testRequestContentWriteWithSyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithNondeterministicAsyncFailure
public abstract void testRequestContentWriteWithNondeterministicAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithAsyncFailureBeforeResponseWrite
public abstract void testRequestContentWriteWithAsyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithAsyncFailureAfterResponseWrite
public abstract void testRequestContentWriteWithAsyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteWithAsyncFailureAfterResponseCloseNoContent
public abstract void testRequestContentWriteWithAsyncFailureAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteNondeterministicException
public abstract void testRequestContentWriteNondeterministicException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionBeforeResponseWrite
public abstract void testRequestContentWriteExceptionBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseWrite
public abstract void testRequestContentWriteExceptionAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseCloseNoContent
public abstract void testRequestContentWriteExceptionAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteNondeterministicExceptionWithSyncCompletion
public abstract void testRequestContentWriteNondeterministicExceptionWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionBeforeResponseWriteWithSyncCompletion
public abstract void testRequestContentWriteExceptionBeforeResponseWriteWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseWriteWithSyncCompletion
public abstract void testRequestContentWriteExceptionAfterResponseWriteWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseCloseNoContentWithSyncCompletion
public abstract void testRequestContentWriteExceptionAfterResponseCloseNoContentWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteNondeterministicExceptionWithAsyncCompletion
public abstract void testRequestContentWriteNondeterministicExceptionWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionBeforeResponseWriteWithAsyncCompletion
public abstract void testRequestContentWriteExceptionBeforeResponseWriteWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseWriteWithAsyncCompletion
public abstract void testRequestContentWriteExceptionAfterResponseWriteWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionAfterResponseCloseNoContentWithAsyncCompletion
public abstract void testRequestContentWriteExceptionAfterResponseCloseNoContentWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithNondeterministicSyncFailure
public abstract void testRequestContentWriteExceptionWithNondeterministicSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithSyncFailureBeforeResponseWrite
public abstract void testRequestContentWriteExceptionWithSyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithSyncFailureAfterResponseWrite
public abstract void testRequestContentWriteExceptionWithSyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithSyncFailureAfterResponseCloseNoContent
public abstract void testRequestContentWriteExceptionWithSyncFailureAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithNondeterministicAsyncFailure
public abstract void testRequestContentWriteExceptionWithNondeterministicAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithAsyncFailureBeforeResponseWrite
public abstract void testRequestContentWriteExceptionWithAsyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithAsyncFailureAfterResponseWrite
public abstract void testRequestContentWriteExceptionWithAsyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentWriteExceptionWithAsyncFailureAfterResponseCloseNoContent
public abstract void testRequestContentWriteExceptionWithAsyncFailureAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithSyncCompletion
public abstract void testRequestContentCloseWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithAsyncCompletion
public abstract void testRequestContentCloseWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithNondeterministicSyncFailure
public abstract void testRequestContentCloseWithNondeterministicSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithSyncFailureBeforeResponseWrite
public abstract void testRequestContentCloseWithSyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithSyncFailureAfterResponseWrite
public abstract void testRequestContentCloseWithSyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithSyncFailureAfterResponseCloseNoContent
public abstract void testRequestContentCloseWithSyncFailureAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithNondeterministicAsyncFailure
public abstract void testRequestContentCloseWithNondeterministicAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithAsyncFailureBeforeResponseWrite
public abstract void testRequestContentCloseWithAsyncFailureBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithAsyncFailureAfterResponseWrite
public abstract void testRequestContentCloseWithAsyncFailureAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseWithAsyncFailureAfterResponseCloseNoContent
public abstract void testRequestContentCloseWithAsyncFailureAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseNondeterministicException
public abstract void testRequestContentCloseNondeterministicException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionBeforeResponseWrite
public abstract void testRequestContentCloseExceptionBeforeResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseWrite
public abstract void testRequestContentCloseExceptionAfterResponseWrite() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseCloseNoContent
public abstract void testRequestContentCloseExceptionAfterResponseCloseNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseNondeterministicExceptionWithSyncCompletion
public abstract void testRequestContentCloseNondeterministicExceptionWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionBeforeResponseWriteWithSyncCompletion
public abstract void testRequestContentCloseExceptionBeforeResponseWriteWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseWriteWithSyncCompletion
public abstract void testRequestContentCloseExceptionAfterResponseWriteWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncCompletion
public abstract void testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseNondeterministicExceptionWithAsyncCompletion
public abstract void testRequestContentCloseNondeterministicExceptionWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionBeforeResponseWriteWithAsyncCompletion
public abstract void testRequestContentCloseExceptionBeforeResponseWriteWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseWriteWithAsyncCompletion
public abstract void testRequestContentCloseExceptionAfterResponseWriteWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncCompletion
public abstract void testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncCompletion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseNondeterministicExceptionWithSyncFailure
public abstract void testRequestContentCloseNondeterministicExceptionWithSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionBeforeResponseWriteWithSyncFailure
public abstract void testRequestContentCloseExceptionBeforeResponseWriteWithSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseWriteWithSyncFailure
public abstract void testRequestContentCloseExceptionAfterResponseWriteWithSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncFailure
public abstract void testRequestContentCloseExceptionAfterResponseCloseNoContentWithSyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseNondeterministicExceptionWithAsyncFailure
public abstract void testRequestContentCloseNondeterministicExceptionWithAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionBeforeResponseWriteWithAsyncFailure
public abstract void testRequestContentCloseExceptionBeforeResponseWriteWithAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseWriteWithAsyncFailure
public abstract void testRequestContentCloseExceptionAfterResponseWriteWithAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncFailure
public abstract void testRequestContentCloseExceptionAfterResponseCloseNoContentWithAsyncFailure() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testResponseWriteCompletionException
public abstract void testResponseWriteCompletionException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testResponseCloseCompletionException
public abstract void testResponseCloseCompletionException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
testResponseCloseCompletionExceptionNoContent
public abstract void testResponseCloseCompletionExceptionNoContent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
runTest
protected <T extends ServerProvider,U,V> void runTest(ServerProviderConformanceTest.Adapter<T,U,V> adapter, com.google.inject.Module... guiceModules) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-