@Test public void checkInputShouldAlwaysReturnTrue() throws Exception { final boolean actual = underTest.checkInput("test"); assertThat(actual) .overridingErrorMessage("Expected value returned by checkInput is true, but was false") .isTrue(); }
@Override public boolean checkInput(@Nullable String name) { return true; }
NameValidator implements InputValidatorEx { @Override public boolean checkInput(@Nullable String name) { return true; } }
NameValidator implements InputValidatorEx { @Override public boolean checkInput(@Nullable String name) { return true; } @Inject  NameValidator(@Nonnull Json2JavaBundle bundle, @Nonnull PsiNameHelper nameHelper); }
NameValidator implements InputValidatorEx { @Override public boolean checkInput(@Nullable String name) { return true; } @Inject  NameValidator(@Nonnull Json2JavaBundle bundle, @Nonnull PsiNameHelper nameHelper); @Nullable @Override String getErrorText(@Nullable String name); @Override boolean checkInput(@Nullable String name); @Override @SuppressWarnings("RedundantIfStatement") boolean canClose(@Nullable String name); }
NameValidator implements InputValidatorEx { @Override public boolean checkInput(@Nullable String name) { return true; } @Inject  NameValidator(@Nonnull Json2JavaBundle bundle, @Nonnull PsiNameHelper nameHelper); @Nullable @Override String getErrorText(@Nullable String name); @Override boolean checkInput(@Nullable String name); @Override @SuppressWarnings("RedundantIfStatement") boolean canClose(@Nullable String name);  }