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

public Class ShouldBePrimitive

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a class is (or not) a primitive data type, i.e, byte, short, int, long, float, double, char and boolean.
Author
Manuel Gutierrez

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BasicErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBePrimitive
(Class<?>
the actual value in the failed assertion.
actual
)

Creates a new instance of ShouldBePrimitive.

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

Constructor Detail

ShouldBePrimitiveback to summary
private ShouldBePrimitive(Class<?> actual)

Method Detail

shouldBePrimitiveback to summary
public static BasicErrorMessageFactory shouldBePrimitive(Class<?> actual)

Creates a new instance of ShouldBePrimitive.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:BasicErrorMessageFactory

the created ErrorMessageFactory.