Class NettyTest

java.lang.Object
io.micronaut.oraclecloud.httpclient.NettyTest

@ExtendWith(NettyRule.class) public abstract class NettyTest extends Object
  • Field Details

  • Constructor Details

    • NettyTest

      public NettyTest()
  • Method Details

    • computeContentLength

      public static void computeContentLength(io.netty.handler.codec.http.FullHttpResponse response)
    • serializer

      protected abstract com.oracle.bmc.http.client.Serializer serializer()
    • newBuilder

      protected abstract com.oracle.bmc.http.client.HttpClientBuilder newBuilder()
    • endpoint

      protected abstract String endpoint()
    • customize

      protected abstract void customize(com.oracle.bmc.common.ClientBuilderBase<?,?> client)
    • setupBootstrap

      protected abstract void setupBootstrap(io.netty.bootstrap.ServerBootstrap bootstrap) throws Exception
      Throws:
      Exception
    • getServerChannel

      protected final io.netty.channel.Channel getServerChannel()
    • simpleRequest

      @Test public void simpleRequest() throws Exception
      Throws:
      Exception
    • textBodyTwice

      @Test public void textBodyTwice() throws Exception
      Throws:
      Exception
    • streamingRequestBuffered

      @Test public void streamingRequestBuffered() throws Exception
      Throws:
      Exception
    • streamingRequest

      @Test public void streamingRequest() throws Exception
      Throws:
      Exception
    • streamingRequestBufferedKnownSize

      @Test public void streamingRequestBufferedKnownSize() throws Exception
      Throws:
      Exception
    • streamingResponse

      @Test @Timeout(10L) public void streamingResponse() throws Exception
      Throws:
      Exception
    • onlyUploadIfPositiveResponse

      @Test public void onlyUploadIfPositiveResponse() throws Exception
      Throws:
      Exception
    • continueBuffer

      @Test public void continueBuffer() throws Exception
      Throws:
      Exception
    • bufferWithoutLength

      @Test public void bufferWithoutLength() throws Exception
      Throws:
      Exception
    • bufferWithLength

      @Test public void bufferWithLength() throws Exception
      Throws:
      Exception
    • continueStream

      @Test public void continueStream() throws Exception
      Throws:
      Exception
    • connectionReuse

      @Test public void connectionReuse() throws Exception
      Throws:
      Exception
    • emptyJsonBody

      @Test public void emptyJsonBody() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • fullSetupTest

      @Test public void fullSetupTest() throws CertificateException
      Throws:
      CertificateException
    • fullSetupConnectionDiesMidError

      @Test public void fullSetupConnectionDiesMidError() throws CertificateException
      Throws:
      CertificateException
    • fullSetupErrorParseFailure

      @Test public void fullSetupErrorParseFailure() throws CertificateException
      Throws:
      CertificateException
    • fullSetupTestManagedCustomProperties

      @Test public void fullSetupTestManagedCustomProperties() throws CertificateException
      Throws:
      CertificateException
    • functionsClientTest

      @Test public void functionsClientTest() throws CertificateException
      Throws:
      CertificateException
    • streamModelTest

      @Test public void streamModelTest() throws Exception
      Throws:
      Exception
    • inclusionTest

      @Test public void inclusionTest() throws Exception
      Throws:
      Exception
    • timeoutRetryTest

      @Test @Timeout(60L) public void timeoutRetryTest() throws Exception
      Throws:
      Exception
    • tcpRefuseTest

      @Test @Timeout(60L) public void tcpRefuseTest() throws Exception
      Throws:
      Exception
    • interceptorOrderTest

      @Test public void interceptorOrderTest() throws Exception
      Throws:
      Exception
    • explicitlySetTest

      @Test public void explicitlySetTest() throws Exception
      Throws:
      Exception
    • dateFormatTest

      @Test public void dateFormatTest() throws Exception
      Throws:
      Exception
    • errorCodeAndMessageTest

      @Test public void errorCodeAndMessageTest() throws Exception
      Throws:
      Exception
    • sessionTokenTest

      @Test public void sessionTokenTest() throws Exception
      Throws:
      Exception
    • pipeTest

      @Test public void pipeTest() throws Exception
      Throws:
      Exception
    • localBaseUriTest

      @Test public void localBaseUriTest() throws Exception
      Throws:
      Exception
    • localBaseUriTestInvalid

      @Test public void localBaseUriTestInvalid() throws Exception
      Throws:
      Exception
    • encryptionSdk

      @Test public void encryptionSdk() throws IOException
      Throws:
      IOException