package org.test4j.hamcrest; import ext.test4j.hamcrest.Matcher; /** * 兼容Java " assert true/false "语法<br> * Integration method for use with Java's <code>assert</code> keyword. Example: * * <pre> * assert that("Foo", startsWith("f")); * </pre> */ public class JavaLangMatcherAssert { private JavaLangMatcherAssert() { }; @SuppressWarnings("rawtypes") public static <T> boolean that(T argument, Matcher matcher) { return matcher.matches(argument); } }