[Solution found!] 如果添加Hamcrest和JUnit4,则可以执行以下操作: String x = "foo bar"; Assert.assertThat(x, CoreMatchers.containsString("foo")); 通过一些 ...
確定! 回上一頁