Package org.assertj.core.error.uri
Class ShouldHaveParameter
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.uri.ShouldHaveParameter
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveParameter extends BasicErrorMessageFactory
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveParameter(String format, Object... arguments)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
multipleValues(List<String> values)
private static boolean
noValueIn(List<String> actualValues)
static ErrorMessageFactory
shouldHaveNoParameter(Object actual, String name, String unwantedValue, List<String> actualValues)
static ErrorMessageFactory
shouldHaveNoParameter(Object actual, String name, List<String> actualValues)
static ErrorMessageFactory
shouldHaveNoParameters(Object actual, Set<String> parameterNames)
static ErrorMessageFactory
shouldHaveParameter(Object actual, String name)
static ErrorMessageFactory
shouldHaveParameter(Object actual, String name, String expectedValue)
static ErrorMessageFactory
shouldHaveParameter(Object actual, String name, String expectedValue, List<String> actualValues)
private static String
valueDescription(List<String> actualValues)
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
SHOULD_HAVE_PARAMETER_BUT_WAS_MISSING
private static final String SHOULD_HAVE_PARAMETER_BUT_WAS_MISSING
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_PARAMETER_WAS_MISSING
private static final String SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_PARAMETER_WAS_MISSING
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_WITH_VALUE_BUT_PARAMETER_WAS_MISSING
private static final String SHOULD_HAVE_PARAMETER_WITH_VALUE_BUT_PARAMETER_WAS_MISSING
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_HAD_VALUE
private static final String SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_HAD_VALUE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_HAD_VALUES
private static final String SHOULD_HAVE_PARAMETER_WITHOUT_VALUE_BUT_HAD_VALUES
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_WITH_VALUE_BUT_HAD_NO_VALUE
private static final String SHOULD_HAVE_PARAMETER_WITH_VALUE_BUT_HAD_NO_VALUE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_VALUE_BUT_HAD_WRONG_VALUE
private static final String SHOULD_HAVE_PARAMETER_VALUE_BUT_HAD_WRONG_VALUE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_PARAMETER_VALUE_BUT_HAD_WRONG_VALUES
private static final String SHOULD_HAVE_PARAMETER_VALUE_BUT_HAD_WRONG_VALUES
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETER_BUT_HAD_ONE_WITHOUT_VALUE
private static final String SHOULD_HAVE_NO_PARAMETER_BUT_HAD_ONE_WITHOUT_VALUE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETER_BUT_HAD_ONE_VALUE
private static final String SHOULD_HAVE_NO_PARAMETER_BUT_HAD_ONE_VALUE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETER_BUT_HAD_MULTIPLE_VALUES
private static final String SHOULD_HAVE_NO_PARAMETER_BUT_HAD_MULTIPLE_VALUES
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETER_WITHOUT_VALUE_BUT_FOUND_ONE
private static final String SHOULD_HAVE_NO_PARAMETER_WITHOUT_VALUE_BUT_FOUND_ONE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETER_WITH_GIVEN_VALUE_BUT_FOUND_ONE
private static final String SHOULD_HAVE_NO_PARAMETER_WITH_GIVEN_VALUE_BUT_FOUND_ONE
- See Also:
- Constant Field Values
-
SHOULD_HAVE_NO_PARAMETERS
private static final String SHOULD_HAVE_NO_PARAMETERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldHaveParameter
public static ErrorMessageFactory shouldHaveParameter(Object actual, String name)
-
shouldHaveParameter
public static ErrorMessageFactory shouldHaveParameter(Object actual, String name, String expectedValue)
-
shouldHaveParameter
public static ErrorMessageFactory shouldHaveParameter(Object actual, String name, String expectedValue, List<String> actualValues)
-
shouldHaveNoParameters
public static ErrorMessageFactory shouldHaveNoParameters(Object actual, Set<String> parameterNames)
-
shouldHaveNoParameter
public static ErrorMessageFactory shouldHaveNoParameter(Object actual, String name, List<String> actualValues)
-
shouldHaveNoParameter
public static ErrorMessageFactory shouldHaveNoParameter(Object actual, String name, String unwantedValue, List<String> actualValues)
-
-