Syntax { Pattern getRegexStartDelimiters() { return regexStartDelimiters; } Syntax(final String delimiterCommentOpen, final String delimiterCommentClose,
      final String delimiterExecuteOpen, final String delimiterExecuteClose,
      final String delimiterPrintOpen,
      final String delimiterPrintClose, final String delimiterInterpolationOpen,
      final String delimiterInterpolationClose, final String whitespaceTrim,
      final boolean enableNewLineTrimming); String getCommentOpenDelimiter(); String getCommentCloseDelimiter(); String getExecuteOpenDelimiter(); String getExecuteCloseDelimiter(); String getPrintOpenDelimiter(); String getPrintCloseDelimiter(); String getInterpolationOpenDelimiter(); String getInterpolationCloseDelimiter(); String getWhitespaceTrim();  }
@Test void testRegexStartDelimiters() { Pattern pattern = this.syntax.getRegexStartDelimiters(); String expectedPatternString = "\\Q{{\\E|\\Q{%\\E|\\Q{#\\E"; assertThat(pattern.toString()).isEqualTo(expectedPatternString); StringBuilder templateText = null; Matcher matcher = null; templateText = new StringBuilder().append("{{"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("{%"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("{#"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("{{ abcd"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("abcd {{"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(false); templateText = new StringBuilder().append("abcd"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(false); }