如果添加Hamcrest和JUnit4,则可以执行以下操作: String x = "foo bar"; Assert. ... 所需的静态导入将是: import static org.junit.Assert.assertThat; import…
確定! 回上一頁