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

public Class ShouldBeAnnotation

extends BasicErrorMessageFactory
Class Inheritance

Creates an error message indicating that an assertion that verifies that a class is (or not) an annotation.
Author
William Delanoue

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeAnnotation(Class<?> actual, boolean toBeOrNotToBe)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new org.assertj.core.error.ShouldBeAnnotation.

public static ErrorMessageFactory

Returns:

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

Creates a new org.assertj.core.error.ShouldBeAnnotation.

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

Constructor Detail

ShouldBeAnnotationback to summary
private ShouldBeAnnotation(Class<?> actual, boolean toBeOrNotToBe)

Method Detail

shouldBeAnnotationback to summary
public static ErrorMessageFactory shouldBeAnnotation(Class<?> actual)

Creates a new org.assertj.core.error.ShouldBeAnnotation.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotBeAnnotationback to summary
public static ErrorMessageFactory shouldNotBeAnnotation(Class<?> actual)

Creates a new org.assertj.core.error.ShouldBeAnnotation.

Parameters
actual:Class<?>

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.