TargetIssueLocatorCommentHelper implements Serializable { public static final TargetIssueLocatorCommentHelper fromTemplateExpression(TemplateExpression templateExpression) { return new TargetIssueLocatorCommentHelper(templateExpression.getExpressionString()); } private  TargetIssueLocatorCommentHelper(String templateExpressionString); static final TargetIssueLocatorCommentHelper fromTargetName(String targetName); static final TargetIssueLocatorCommentHelper fromTemplateExpression(TemplateExpression templateExpression); final String getCommentForSubmittedIssue(TargetIssueLocator targetIssueLocator); final TargetIssueLocator getTargetIssueLocatorFromComment(String comment); final TemplateExpression getTemplateExpression(); final Pattern getMatchPattern(); final MessageFormat getParser();  }
@Test public void testFromTemplateExpressionWithIdAndDeepLink() { String id = "someId"; String deepLink = "http: testCommentHelper(TargetIssueLocatorCommentHelper.fromTemplateExpression( SpringExpressionUtil.parseTemplateExpression("BlaBla ${id} -- ${deepLink}")), id, id, deepLink, deepLink); }
@Test public void testFromTemplateExpressionWithoutId() { String id = "someId"; String deepLink = "http: testCommentHelper(TargetIssueLocatorCommentHelper.fromTemplateExpression( SpringExpressionUtil.parseTemplateExpression("BlaBla ${deepLink}")), id, null, deepLink, deepLink); }
@Test public void testFromTemplateExpressionWithoutDeepLink() { String id = "someId"; String deepLink = "http: testCommentHelper(TargetIssueLocatorCommentHelper.fromTemplateExpression( SpringExpressionUtil.parseTemplateExpression("BlaBla ${id}")), id, id, deepLink, null); }
@Test public void testFromTemplateExpressionWithSpecialChars() { String id = "someId"; String deepLink = "http: testCommentHelper(TargetIssueLocatorCommentHelper.fromTemplateExpression( SpringExpressionUtil.parseTemplateExpression("BlaBla $ { ' [ ] ' } '${id}' -- '${deepLink}'")), id, id, deepLink, deepLink); }