Module methanol.testing
Class BodyPublisherVerifier
java.lang.Object
com.github.mizosoft.methanol.testing.verifiers.BodyPublisherVerifier
A small DSL for testing
BodyPublisher
implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.assertj.core.api.AbstractThrowableAssert
<?, ?> hasContentLength
(long contentLength) hasMediaType
(MediaType mediaType) hasMediaType
(String mediaType) repeatedly
(Consumer<BodyPublisherVerifier> verification) Repeats the verification twice to ensure result repeatability.org.assertj.core.api.AbstractStringAssert
<?> succeedsWith
(String expected) org.assertj.core.api.AbstractStringAssert
<?> succeedsWith
(String expected, Charset charset) org.assertj.core.api.AbstractObjectAssert
<?, ByteBuffer> succeedsWith
(ByteBuffer bytes) org.assertj.core.api.AbstractStringAssert
<?> succeedsWithNormalizingLineEndings
(String expected)
-
Constructor Details
-
BodyPublisherVerifier
-
-
Method Details
-
hasMediaType
-
hasMediaType
-
hasNoMediaType
-
hasContentLength
-
succeedsWith
-
succeedsWith
-
succeedsWith
-
succeedsWithNormalizingLineEndings
public org.assertj.core.api.AbstractStringAssert<?> succeedsWithNormalizingLineEndings(String expected) -
failsWith
-
repeatedly
Repeats the verification twice to ensure result repeatability.
-