which library contains assert that object matcher code example
Example 1: error: The method assertThat(T, Matcher) in the type MatcherAssert is not applicable for the arguments (List, Matcher>)
assertEquals(expected, actual);
assertThat(actual, is(equalTo(expected)));
assertNotEquals(expected, actual)
assertThat(actual, is(not(equalTo(expected))));
Example 2: error: The method assertThat(T, Matcher) in the type MatcherAssert is not applicable for the arguments (List, Matcher>)
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.equalTo;
boolean a;
boolean b;
assertThat(a, equalTo(b));
assertThat(a, is(equalTo(b)));
assertThat(a, is(b));