Map<Foo, String> map;
org.hamcrest.MatcherAssert.assertThat(map,
org.hamcrest.Matchers.hasKey(new Foo()));
這是編譯器說:
cannot find symbol method assertThat(java.util.Map<Foo,java.lang.String>,
org.hamcrest.Matcher<java.util.Map<Foo,java.lang.Object>>)
爲什麼,我該怎麼辦?
這一年困擾了我多年。年份!謝謝,喬恩。 – Trenton