assertThat(subject.title, 'is'( shows error

To remedy this, I attempted to:

  1. Import is explicitly through “import org.hamcrest.core.Is” But this didn’t work. It kept saying that ‘is’ is too long a character that should be converted to string.
  2. I looked at the documentation and followed how they used is with assertThat but it also didn’t work. The error said "expecting ‘)’ .

In the end, I used assertEquals which I am familiar with to proceed and the test was passed. But I want to what I did wrong. I would appreciate any help. Below is the screenshot of my code.

You should be using the backtick instead of the single quotes for is to work.