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

public Class ShouldHaveAnnotations

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.lang.annotation.Annotation, java.util.Collection

Creates an error message indicating that an assertion that verifies that a class has annotations failed.
Authors
William Delanoue, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveAnnotations(Class<?> actual, Collection<Class<? extends Annotation>> expected, Collection<Class<? extends Annotation>> missing)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveAnnotations
(Class<?>
the actual value in the failed assertion.
actual
,
Collection<Class<? extends Annotation>>
expected annotations for this class
expected
,
Collection<Class<? extends Annotation>>
missing annotations for this class
missing
)

Creates a new ShouldHaveAnnotations.

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

Constructor Detail

ShouldHaveAnnotationsback to summary
private ShouldHaveAnnotations(Class<?> actual, Collection<Class<? extends Annotation>> expected, Collection<Class<? extends Annotation>> missing)

Method Detail

shouldHaveAnnotationsback to summary
public static ErrorMessageFactory shouldHaveAnnotations(Class<?> actual, Collection<Class<? extends Annotation>> expected, Collection<Class<? extends Annotation>> missing)

Creates a new ShouldHaveAnnotations.

Parameters
actual:Class<?>

the actual value in the failed assertion.

expected:Collection<Class<? extends Annotation>>

expected annotations for this class

missing:Collection<Class<? extends Annotation>>

missing annotations for this class

Returns:ErrorMessageFactory

the created ErrorMessageFactory.