ここで、https://github.com/junit-team/junit/wiki/Assertionsを見てください:
public void testAssertThatHamcrestCoreMatchers() {
assertThat("good", allOf(equalTo("good"), startsWith("good")));
assertThat("good", not(allOf(equalTo("bad"), equalTo("good"))));
assertThat("good", anyOf(equalTo("bad"), equalTo("good")));
assertThat(7, not(CombinableMatcher.<Integer> either(equalTo(3)).or(equalTo(4))));
assertThat(new Object(), not(sameInstance(new Object())));
}
5行目、CombinableMatcher.<Integer>
有効ですか?私はjava6で試してみましたが、失敗しました。それは新しい文法ですか、それとも単純なタイプミスですか?