Class BodyPublisherVerifier

java.lang.Object
com.github.mizosoft.methanol.testing.verifiers.BodyPublisherVerifier

public final class BodyPublisherVerifier extends Object
A small DSL for testing BodyPublisher implementations.
  • Constructor Details

  • Method Details

    • hasMediaType

      public BodyPublisherVerifier hasMediaType(String mediaType)
    • hasMediaType

      public BodyPublisherVerifier hasMediaType(MediaType mediaType)
    • hasNoMediaType

      public BodyPublisherVerifier hasNoMediaType()
    • hasContentLength

      public BodyPublisherVerifier hasContentLength(long contentLength)
    • succeedsWith

      public org.assertj.core.api.AbstractStringAssert<?> succeedsWith(String expected)
    • succeedsWith

      public org.assertj.core.api.AbstractStringAssert<?> succeedsWith(String expected, Charset charset)
    • succeedsWith

      public org.assertj.core.api.AbstractObjectAssert<?,ByteBuffer> succeedsWith(ByteBuffer bytes)
    • succeedsWithNormalizingLineEndings

      public org.assertj.core.api.AbstractStringAssert<?> succeedsWithNormalizingLineEndings(String expected)
    • failsWith

      public org.assertj.core.api.ThrowableAssertAlternative<?> failsWith(Class<? extends Throwable> type)