public class Should extends Object
should_xxxx(Type1 actual, Type2 expected).
fact actual should xxxx expected
| Constructor and Description |
|---|
Should() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
_()
A helper method to mark irrelevant values.
|
static <T> org.hamcrest.Matcher<? super T> |
matches(String desc,
org.eclipse.xtext.xbase.lib.Functions.Function1<T,Boolean> matcher) |
static <T> org.hamcrest.Matcher<T> |
nullValue() |
static boolean |
operator_doubleArrow(Class<?> actual,
Class<?> expected) |
static boolean |
operator_doubleArrow(Object actual,
Class<?> expectedType) |
static <T> boolean |
operator_doubleArrow(T actual,
boolean result) |
static <T> boolean |
operator_doubleArrow(T actual,
org.hamcrest.Matcher<? super T> matcher) |
static <T> boolean |
operator_doubleArrow(T actual,
T expected) |
static boolean |
should_be(Class<?> actual,
Class<?> expectedType) |
static boolean |
should_be(Object actual,
Class<?> expectedType) |
static <T> boolean |
should_be(T actual,
boolean result) |
static <T> boolean |
should_be(T obj,
org.eclipse.xtext.xbase.lib.Functions.Function1<T,Boolean> func) |
static <T> boolean |
should_be(T actual,
org.hamcrest.Matcher<? super T> matcher) |
static <T> boolean |
should_be(T actual,
T expected) |
static <T> boolean |
should_contain(CharSequence actual,
CharSequence substring) |
static <T> boolean |
should_contain(Iterable<T> collection,
org.hamcrest.Matcher<? super T> matcher) |
static <T> boolean |
should_contain(Iterable<T> actual,
T element) |
static boolean |
should_endWith(CharSequence s,
String substring) |
static boolean |
should_startWith(CharSequence s,
String substring) |
public static <T> boolean operator_doubleArrow(T actual,
T expected)
public static boolean operator_doubleArrow(Object actual, Class<?> expectedType)
public static <T> boolean operator_doubleArrow(T actual,
org.hamcrest.Matcher<? super T> matcher)
public static <T> boolean operator_doubleArrow(T actual,
boolean result)
public static <T> boolean should_be(T obj,
org.eclipse.xtext.xbase.lib.Functions.Function1<T,Boolean> func)
public static <T> boolean should_be(T actual,
T expected)
public static <T> boolean should_be(T actual,
org.hamcrest.Matcher<? super T> matcher)
public static <T> boolean should_contain(Iterable<T> actual, T element)
public static <T> boolean should_contain(Iterable<T> collection, org.hamcrest.Matcher<? super T> matcher)
public static <T> boolean should_contain(CharSequence actual, CharSequence substring)
public static <T> boolean should_be(T actual,
boolean result)
public static boolean should_startWith(CharSequence s, String substring)
public static boolean should_endWith(CharSequence s, String substring)
public static <T> org.hamcrest.Matcher<? super T> matches(String desc, org.eclipse.xtext.xbase.lib.Functions.Function1<T,Boolean> matcher)
public static <T> T _()
public static <T> org.hamcrest.Matcher<T> nullValue()
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.