Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
  @Test
  public void test() {
    Definition d = mock(Definition.class);
    doReturn("hello").when(d).getName());
    ....
}

This at least gives an error message (example):

...