JavaLangMatcherAssert (Hamcrest)
Date: 2012-07-09

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hamcrest
Class JavaLangMatcherAssert

    java.lang.Object
      org.hamcrest.JavaLangMatcherAssert

    public class JavaLangMatcherAssert

extends java.lang.Object

Integration method for use with Java's `assert` keyword. Example:

     assert that("Foo", startsWith("f"));

Author:
  Neil Dunn

Method Summary
`static
`<T> boolean`
` | `that(T argument, Matcher<? super T> matcher)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### that

    public static <T> boolean that(T argument,
                                   Matcher<? super T> matcher)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD