@Test public void checkInputShouldAlwaysReturnFalse() throws Exception { final boolean actual = underTest.checkInput("text"); assertThat(actual) .overridingErrorMessage("Expected value returned by checkInput is false but was true") .isFalse(); }
@Override public boolean checkInput(@Nullable String text) { return false; }
NullValidator implements InputValidator { @Override public boolean checkInput(@Nullable String text) { return false; } }
NullValidator implements InputValidator { @Override public boolean checkInput(@Nullable String text) { return false; }  }
NullValidator implements InputValidator { @Override public boolean checkInput(@Nullable String text) { return false; }  @Override boolean checkInput(@Nullable String text); @Override boolean canClose(@Nullable String text); }
NullValidator implements InputValidator { @Override public boolean checkInput(@Nullable String text) { return false; }  @Override boolean checkInput(@Nullable String text); @Override boolean canClose(@Nullable String text);  }