![JAR search and dependency download from the Maven repository](/logo.png)
qa.tools.ikeeper.action.ActionMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of issue-keeper-junit Show documentation
Show all versions of issue-keeper-junit Show documentation
Issue keeper is a tracking tool which makes the tests skipped in advance when they are blocked by the open issues.
package qa.tools.ikeeper.action;
import qa.tools.ikeeper.IssueDetails;
class ActionMessage {
public static String generate(String testName, IssueDetails details, String result) {
String description = details.getDescription();
String msg = testName + " - this test " + result + " due to:\n\t" + formatId(details.getId()) + " " + details.getTitle() + "\n\tstatus: " + details.getStatusName() + formatDescription(description);
return msg;
}
private static String formatId(String id) {
return id.matches("[0-9].*") ? "BZ-" + id : id;
}
private static String formatDescription(String description) {
return description == null || description.isEmpty() ? "" : "\n\tdescription: " + description;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy