@Test public void testExcludeNotEquals() { assertThat(filter.exclude(StringUtils.reverse(scriptName), violation)).isFalse(); }
@Override public boolean exclude(final String scriptName, final Violation violation) { if (scriptName == null) { throw new IllegalArgumentException("Script name cannot be null."); } if (violation == null) { throw new IllegalArgumentException("Violation cannot be null."); } return this.scriptName.equalsIgnoreCase(scriptName); }
ScriptNameFilter implements ViolationFilter { @Override public boolean exclude(final String scriptName, final Violation violation) { if (scriptName == null) { throw new IllegalArgumentException("Script name cannot be null."); } if (violation == null) { throw new IllegalArgumentException("Violation cannot be null."); } return this.scriptName.equalsIgnoreCase(scriptName); } }
ScriptNameFilter implements ViolationFilter { @Override public boolean exclude(final String scriptName, final Violation violation) { if (scriptName == null) { throw new IllegalArgumentException("Script name cannot be null."); } if (violation == null) { throw new IllegalArgumentException("Violation cannot be null."); } return this.scriptName.equalsIgnoreCase(scriptName); } ScriptNameFilter(final String scriptName); }
ScriptNameFilter implements ViolationFilter { @Override public boolean exclude(final String scriptName, final Violation violation) { if (scriptName == null) { throw new IllegalArgumentException("Script name cannot be null."); } if (violation == null) { throw new IllegalArgumentException("Violation cannot be null."); } return this.scriptName.equalsIgnoreCase(scriptName); } ScriptNameFilter(final String scriptName); @Override boolean exclude(final String scriptName, final Violation violation); }
ScriptNameFilter implements ViolationFilter { @Override public boolean exclude(final String scriptName, final Violation violation) { if (scriptName == null) { throw new IllegalArgumentException("Script name cannot be null."); } if (violation == null) { throw new IllegalArgumentException("Violation cannot be null."); } return this.scriptName.equalsIgnoreCase(scriptName); } ScriptNameFilter(final String scriptName); @Override boolean exclude(final String scriptName, final Violation violation);  }