@Test void isWildShouldReturnTrueWhenLocalWildcardAtBeginning() { PrefixedRegex prefixedRegex = new PrefixedRegex(PREFIX, "%One", PATH_DELIMITER); boolean actual = prefixedRegex.isWild(); assertThat(actual).isTrue(); }
@Override public boolean isWild() { return regex != null && ( regex.indexOf(FREEWILDCARD) >= 0 || regex.indexOf(LOCALWILDCARD) >= 0); }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isWild() { return regex != null && ( regex.indexOf(FREEWILDCARD) >= 0 || regex.indexOf(LOCALWILDCARD) >= 0); } }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isWild() { return regex != null && ( regex.indexOf(FREEWILDCARD) >= 0 || regex.indexOf(LOCALWILDCARD) >= 0); } PrefixedRegex(String prefix, String regex, char pathDelimiter); }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isWild() { return regex != null && ( regex.indexOf(FREEWILDCARD) >= 0 || regex.indexOf(LOCALWILDCARD) >= 0); } PrefixedRegex(String prefix, String regex, char pathDelimiter); @Override boolean isExpressionMatch(String name); @Override MailboxNameExpression includeChildren(); @Override String getCombinedName(); @Override boolean isWild(); @Override final boolean equals(Object o); @Override final int hashCode(); }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isWild() { return regex != null && ( regex.indexOf(FREEWILDCARD) >= 0 || regex.indexOf(LOCALWILDCARD) >= 0); } PrefixedRegex(String prefix, String regex, char pathDelimiter); @Override boolean isExpressionMatch(String name); @Override MailboxNameExpression includeChildren(); @Override String getCombinedName(); @Override boolean isWild(); @Override final boolean equals(Object o); @Override final int hashCode();  }