public class ShouldHaveMethods extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveMethods(Class<?> actual,
boolean declared,
SortedSet<String> expected,
SortedSet<String> missing)
Creates a new
ShouldHaveMethods . |
static ErrorMessageFactory |
shouldHaveMethods(Class<?> actual,
boolean declared,
SortedSet<String> expected,
String modifier,
Map<String,String> nonMatching) |
static ErrorMessageFactory |
shouldNotHaveMethods(Class<?> actual,
boolean declared,
SortedSet<String> actualMethodsHavingModifier) |
static ErrorMessageFactory |
shouldNotHaveMethods(Class<?> actual,
String modifier,
boolean declared,
SortedSet<String> actualMethodsHavingModifier) |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, SortedSet<String> missing)
ShouldHaveMethods
.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 classErrorMessageFactory
.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)
Copyright © 2013–2017 AssertJ. All rights reserved.