Solved: How to use assertThat(), is(), not(), equals()

To use this fluent syntax in JUnit:

    @Test
    public void testEquals() {
        int expected = 0;
        int actual = 0;
        assertThat(expected, is(equalTo(actual)));
    }

You'll need to import statements below:

    import static org.junit.Assert.*;
    import static org.hamcrest.CoreMatchers.*;

Links