@Test void isExpressionMatchShouldMatchDeeplyNestedFolderWhenFreeLocalWildcardInMiddle() { PrefixedRegex testee = new PrefixedRegex(EMPTY_PREFIX, "sub*%mailbox", PATH_DELIMITER); boolean actual = testee.isExpressionMatch("subw.hat.eve.rmailbox"); assertThat(actual).isTrue(); }
@Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix) && regexMatching(name.substring(prefix.length())); }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix) && regexMatching(name.substring(prefix.length())); } }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix) && regexMatching(name.substring(prefix.length())); } PrefixedRegex(String prefix, String regex, char pathDelimiter); }
PrefixedRegex implements MailboxNameExpression { @Override public boolean isExpressionMatch(String name) { return name.startsWith(prefix) && regexMatching(name.substring(prefix.length())); } 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 isExpressionMatch(String name) { return name.startsWith(prefix) && regexMatching(name.substring(prefix.length())); } 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();  }