标签: java junit hamcrest
以下是is方法的示例:
is
assertThat(dynamicType.newInstance().toString(), is("Hello World!"));
答案 0 :(得分:-1)
由
import static org.hamcrest.CoreMatchers.is;