Package org.assertj.core.error
Class ShouldHaveMethods
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveMethods
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a class have methods.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveMethods
(Class<?> actual, boolean declared, SortedSet<String> expected, String modifier, Map<String, String> nonMatching) static ErrorMessageFactory
shouldHaveMethods
(Class<?> actual, boolean declared, SortedSet<String> expected, SortedSet<String> missing) Creates a new
.ShouldHaveMethods
static ErrorMessageFactory
shouldNotHaveMethods
(Class<?> actual, boolean declared, SortedSet<String> actualMethodsHavingModifier) static ErrorMessageFactory
shouldNotHaveMethods
(Class<?> actual, String modifier, boolean declared, SortedSet<String> actualMethodsHavingModifier) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveMethods
public static ErrorMessageFactory shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, SortedSet<String> missing) Creates a new
.ShouldHaveMethods
- Parameters:
actual
- the actual value in the failed assertion.declared
-true
if the expected methods are declared ones,false
otherwise.expected
- expected methods for this classmissing
- missing methods for this class- Returns:
- the created
ErrorMessageFactory
.
-
shouldHaveMethods
-
shouldNotHaveMethods
public static ErrorMessageFactory shouldNotHaveMethods(Class<?> actual, String modifier, boolean declared, SortedSet<String> actualMethodsHavingModifier) -
shouldNotHaveMethods
public static ErrorMessageFactory shouldNotHaveMethods(Class<?> actual, boolean declared, SortedSet<String> actualMethodsHavingModifier)
-