在java单元测试中使用asserThat(5, is(5))时,提示is未定义。 这里我们需要添加org.hamcrest的包,然后导入: import static org.hamcrest.Matchers.*;