Package com.atlassian.bamboo.testutils
Class RepositoryHelper
- java.lang.Object
-
- com.atlassian.bamboo.testutils.RepositoryHelper
-
public class RepositoryHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepositoryHelper.CommandResult
-
Field Summary
Fields Modifier and Type Field Description static String
COMMIT_MESSAGE_CORE
static String
JIRA_ISSUE_KEY
static String
JIRA_PROJECT_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult)
static String
getCommitComment()
static String
getCommitComment(String issueKey)
static @NotNull RepositoryHelper.CommandResult
runCommand(File dir, String... args)
static @NotNull RepositoryHelper.CommandResult
runCommand(Path dir, String... args)
static @NotNull RepositoryHelper.CommandResult
runCommandExplosively(File cwd, String... args)
static void
touchFile(File fileToTouch)
static void
touchFile(Path fileToTouch)
-
-
-
Field Detail
-
JIRA_PROJECT_KEY
public static final String JIRA_PROJECT_KEY
- See Also:
- Constant Field Values
-
JIRA_ISSUE_KEY
public static final String JIRA_ISSUE_KEY
- See Also:
- Constant Field Values
-
COMMIT_MESSAGE_CORE
public static final String COMMIT_MESSAGE_CORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommitComment
public static String getCommitComment()
-
touchFile
public static void touchFile(File fileToTouch) throws IOException
- Throws:
IOException
-
touchFile
public static void touchFile(Path fileToTouch) throws IOException
- Throws:
IOException
-
runCommand
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommand(Path dir, String... args) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
runCommand
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommand(File dir, String... args) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
runCommandExplosively
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommandExplosively(File cwd, String... args) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
assertCommandResultSuccessful
public static void assertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult)
-
-