IsEmpty implements Operator { @Override public boolean apply(AdaptrisMessage message, String object) { String contentItem = message.resolve(object); if (StringUtils.isEmpty(contentItem)) { return true; } if (isIgnoreWhitespace() && StringUtils.isBlank(contentItem)) { return true; } return false; }  @Override boolean apply(AdaptrisMessage message, String object); Boolean getIgnoreWhitespace(); void setIgnoreWhitespace(Boolean ignoreWhitespace);  }
@Test public void testNoMatch() { assertFalse(operator.apply(message, "a string value")); }
@Test public void testMatchNull() { assertTrue(operator.apply(message, null)); }
@Test public void testMatchEmptyString() { assertTrue(operator.apply(message, "")); }
@Test public void testMatchWhitespaceString() { assertFalse(operator.apply(message, " \t")); }
@Test public void testMatchMixedString() { assertFalse(operator.apply(message, " ABC ")); }