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

public Class ShouldHaveMethods

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Map, .Set, .SortedSet

Creates an error message indicating that an assertion that verifies that a class have methods.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveMethods(Class<?> actual, Set<String> expected, Set<String> missing, boolean declared)

private
ShouldHaveMethods(Class<?> actual, Set<String> expected, String modifier, Map<String, String> nonMatching, boolean declared)

private
ShouldHaveMethods(Class<?> actual, String modifier, boolean declared, Set<String> actualMethodsHavingModifier)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveMethods
(Class<?>
the actual value in the failed assertion.
actual
,
boolean
true if the expected methods are declared ones, false otherwise.
declared
,
SortedSet<String>
expected methods for this class
expected
,
SortedSet<String>
missing methods for this class
missing
)

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

public static ErrorMessageFactory
shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, String modifier, Map<String, String> nonMatching)

public static ErrorMessageFactory
shouldNotHaveMethods(Class<?> actual, String modifier, boolean declared, SortedSet<String> actualMethodsHavingModifier)

public static ErrorMessageFactory
shouldNotHaveMethods(Class<?> actual, boolean declared, SortedSet<String> actualMethodsHavingModifier)

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

Constructor Detail

ShouldHaveMethodsback to summary
private ShouldHaveMethods(Class<?> actual, Set<String> expected, Set<String> missing, boolean declared)
ShouldHaveMethodsback to summary
private ShouldHaveMethods(Class<?> actual, Set<String> expected, String modifier, Map<String, String> nonMatching, boolean declared)
ShouldHaveMethodsback to summary
private ShouldHaveMethods(Class<?> actual, String modifier, boolean declared, Set<String> actualMethodsHavingModifier)

Method Detail

shouldHaveMethodsback to summary
public static ErrorMessageFactory shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, SortedSet<String> missing)

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

Parameters
actual:Class<?>

the actual value in the failed assertion.

declared:boolean

true if the expected methods are declared ones, false otherwise.

expected:SortedSet<String>

expected methods for this class

missing:SortedSet<String>

missing methods for this class

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldHaveMethodsback to summary
public static ErrorMessageFactory shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, String modifier, Map<String, String> nonMatching)
shouldNotHaveMethodsback to summary
public static ErrorMessageFactory shouldNotHaveMethods(Class<?> actual, String modifier, boolean declared, SortedSet<String> actualMethodsHavingModifier)
shouldNotHaveMethodsback to summary
public static ErrorMessageFactory shouldNotHaveMethods(Class<?> actual, boolean declared, SortedSet<String> actualMethodsHavingModifier)