Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldHaveBinaryContent

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.io.File, .InputStream, java.nio.file.Path, org.assertj.core.internal.BinaryDiffResult

Creates an error message indicating that an assertion that verifies that a file/path has a given binary content failed.
Author
Olivier Michallat

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
private
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveBinaryContent
(File
the actual file in the failed assertion.
actual
,
BinaryDiffResult
the differences between actual and the given binary content.
diff
)

Creates a new ShouldHaveBinaryContent.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveBinaryContent
(Path
the actual path in the failed assertion.
actual
,
BinaryDiffResult
the differences between actual and the given binary content.
diff
)

Creates a new ShouldHaveBinaryContent.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveBinaryContent
(InputStream
the actual input stream in the failed assertion.
actual
,
BinaryDiffResult
the differences between actual and the given binary content.
diff
)

Creates a new ShouldHaveBinaryContent.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldHaveBinaryContentback to summary
private ShouldHaveBinaryContent(File actual, BinaryDiffResult diff)
ShouldHaveBinaryContentback to summary
private ShouldHaveBinaryContent(Path actual, BinaryDiffResult diff)
ShouldHaveBinaryContentback to summary
private ShouldHaveBinaryContent(InputStream actual, BinaryDiffResult diff)

Method Detail

shouldHaveBinaryContentback to summary
public static ErrorMessageFactory shouldHaveBinaryContent(File actual, BinaryDiffResult diff)

Creates a new ShouldHaveBinaryContent.

Parameters
actual:File

the actual file in the failed assertion.

diff:BinaryDiffResult

the differences between actual and the given binary content.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldHaveBinaryContentback to summary
public static ErrorMessageFactory shouldHaveBinaryContent(Path actual, BinaryDiffResult diff)

Creates a new ShouldHaveBinaryContent.

Parameters
actual:Path

the actual path in the failed assertion.

diff:BinaryDiffResult

the differences between actual and the given binary content.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldHaveBinaryContentback to summary
public static ErrorMessageFactory shouldHaveBinaryContent(InputStream actual, BinaryDiffResult diff)

Creates a new ShouldHaveBinaryContent.

Parameters
actual:InputStream

the actual input stream in the failed assertion.

diff:BinaryDiffResult

the differences between actual and the given binary content.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.