@Test public void createClosedComment() { final long requestId = 5473; final String solver = "ljn-ytd"; final String transactionHash = "ZWQ1R12QBPMI7AS6PCCQ"; final String result = githubCommentFactory.createClosedComment(requestId, solver, transactionHash); assertThat(result).isEqualTo(EXPECTED_CLOSED_COMMENT); }
public String createClosedComment(final Long requestId, final String solver, final String transactionHash) { return String.format(CLOSED_COMMENT_TEMPLATE, platformBasePath, requestId, solver, etherscanBasePath, transactionHash); }
GithubCommentFactory { public String createClosedComment(final Long requestId, final String solver, final String transactionHash) { return String.format(CLOSED_COMMENT_TEMPLATE, platformBasePath, requestId, solver, etherscanBasePath, transactionHash); } }
GithubCommentFactory { public String createClosedComment(final Long requestId, final String solver, final String transactionHash) { return String.format(CLOSED_COMMENT_TEMPLATE, platformBasePath, requestId, solver, etherscanBasePath, transactionHash); } GithubCommentFactory(@Value("${io.fundrequest.platform.base-path}") final String platformBasePath,
                                @Value("${io.fundrequest.etherscan.basepath}") final String etherscanBasePath); }
GithubCommentFactory { public String createClosedComment(final Long requestId, final String solver, final String transactionHash) { return String.format(CLOSED_COMMENT_TEMPLATE, platformBasePath, requestId, solver, etherscanBasePath, transactionHash); } GithubCommentFactory(@Value("${io.fundrequest.platform.base-path}") final String platformBasePath,
                                @Value("${io.fundrequest.etherscan.basepath}") final String etherscanBasePath); String createFundedComment(final Long requestId, final String githubIssueNumber); String createResolvedComment(final Long requestId, final String solver); String createClosedComment(final Long requestId, final String solver, final String transactionHash); }
GithubCommentFactory { public String createClosedComment(final Long requestId, final String solver, final String transactionHash) { return String.format(CLOSED_COMMENT_TEMPLATE, platformBasePath, requestId, solver, etherscanBasePath, transactionHash); } GithubCommentFactory(@Value("${io.fundrequest.platform.base-path}") final String platformBasePath,
                                @Value("${io.fundrequest.etherscan.basepath}") final String etherscanBasePath); String createFundedComment(final Long requestId, final String githubIssueNumber); String createResolvedComment(final Long requestId, final String solver); String createClosedComment(final Long requestId, final String solver, final String transactionHash);  }