InputStreams.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStreams |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public AbstractStringAssert | Returns: a string assertion object.the charset)Charset to interpret the InputStream's content to a StringConverts the content of the actual |
| public SELF | Returns: this assertion object.the expected binary content to compare the actual expected)InputStream's content to.Verifies that the binary content of the actual |
| public SELF | Returns: this assertion object.the given expected)String to compare the actual InputStream to.Verifies that the content of the actual |
| public SELF | Returns: this assertion object.the given expected)InputStream to compare the actual InputStream to.
Deprecated
use
Verifies that the content of the actual hasSameContentAs(InputStream) instead
InputStream is equal to the content of the given one.
|
| public SELF | Returns: this assertion object.the MessageDigest used to calculate the digests. digest, byte[] the expected binary content to compare the actual expected)InputStream's digest to.Verifies that the tested |
| public SELF | Returns: this assertion object.the MessageDigest used to calculate the digests. digest, String the expected binary content to compare the actual expected)InputStream's digest to.Verifies that the tested |
| public SELF | Returns: this assertion object.the algorithm used to calculate the digests. algorithm, byte[] the expected binary content to compare the actual expected)InputStream's content to.Verifies that the tested |
| public SELF | Returns: this assertion object.the algorithm used to calculate the digests. algorithm, String the expected binary content to compare the actual expected)InputStream's content to.Verifies that the tested |
| public SELF | Returns: this assertion object.the given expected)InputStream to compare the actual InputStream to.Verifies that the content of the actual |
| public SELF | Returns: this assertion object.Verifies that the content of the actual |
| public SELF | Returns: this assertion object.Verifies that the content of the actual |
| private String |
| inputStreams | back to summary |
|---|---|
| pack-priv InputStreams inputStreams
| |
| AbstractInputStreamAssert | back to summary |
|---|---|
| protected AbstractInputStreamAssert(ACTUAL actual, Class<?> selfType) | |
| assertIsEmpty | back to summary |
|---|---|
| private void assertIsEmpty() | |
| assertIsNotEmpty | back to summary |
|---|---|
| private void assertIsNotEmpty() | |
| asString | back to summary |
|---|---|
| public AbstractStringAssert Converts the content of the actual Example :
| |
| hasBinaryContent | back to summary |
|---|---|
| public SELF hasBinaryContent(byte[] expected) Verifies that the binary content of the actual Example:
| |
| hasContent | back to summary |
|---|---|
| public SELF hasContent(String expected) Verifies that the content of the actual
This will change in AssertJ 4.0 where newlines will be taken into account, in the meantime, to get this behavior
one can use Example:
| |
| hasContentEqualTo | back to summary |
|---|---|
| public SELF hasContentEqualTo(InputStream expected)
Deprecated use Verifies that the content of the actual
| |
| hasDigest | back to summary |
|---|---|
| public SELF hasDigest(MessageDigest digest, byte[] expected) Verifies that the tested Examples:
| |
| hasDigest | back to summary |
|---|---|
| public SELF hasDigest(MessageDigest digest, String expected) Verifies that the tested Examples:
| |
| hasDigest | back to summary |
|---|---|
| public SELF hasDigest(String algorithm, byte[] expected) Verifies that the tested Examples:
| |
| hasDigest | back to summary |
|---|---|
| public SELF hasDigest(String algorithm, String expected) Verifies that the tested Examples:
| |
| hasSameContentAs | back to summary |
|---|---|
| public SELF hasSameContentAs(InputStream expected) Verifies that the content of the actual Example:
| |
| isEmpty | back to summary |
|---|---|
| public SELF isEmpty() Verifies that the content of the actual Warning this will consume the first byte of the Example:
| |
| isNotEmpty | back to summary |
|---|---|
| public SELF isNotEmpty() Verifies that the content of the actual Warning this will consume the first byte of the Example:
| |
| readString | back to summary |
|---|---|
| private String readString(Charset charset) | |