Top Description Classes
[default module]

Package org.hamcrest.core


Fundamental matchers of objects and values, and composite matchers.

Class Summary

Modifier and TypeClass and Description
public class
AllOf<T>

Calculates the logical conjunction of multiple matchers.

public class
AnyOf<T>

Calculates the logical disjunction of multiple matchers.

public class
public class
DescribedAs<T>

Provides a custom description to another matcher.

public class
Every<T>

public class
Is<T>

Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.

public class
IsAnything<T>

A matcher that always returns true.

public class
IsCollectionContaining<T>

Deprecated As of release 2.1, replaced by IsIterableContaining.
public class
IsEqual<T>

Is the value equal to another value, as tested by the java.lang.Object#equals invokedMethod?

public class
IsInstanceOf

Tests whether the value is an instance of a class.

public class
public class
IsNot<T>

Calculates the logical negation of a matcher.

public class
IsNull<T>

Is the value null?

public class
IsSame<T>

Is the value the same object as another value?

pack-priv abstract class
public class
StringContains

Tests if the argument is a string that contains a specific substring.

public class
StringEndsWith

Tests if the argument is a string that ends with a specific substring.

public class
public class
StringStartsWith

Tests if the argument is a string that starts with a specific substring.

public abstract class