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 classRepositoryHelper.CommandResult
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMIT_MESSAGE_COREstatic StringJIRA_ISSUE_KEYstatic StringJIRA_PROJECT_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult)static StringgetCommitComment()static StringgetCommitComment(String issueKey)static @NotNull RepositoryHelper.CommandResultrunCommand(File dir, String... args)static @NotNull RepositoryHelper.CommandResultrunCommand(Path dir, String... args)static @NotNull RepositoryHelper.CommandResultrunCommandExplosively(File cwd, String... args)static voidtouchFile(File fileToTouch)static voidtouchFile(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:
IOExceptionInterruptedException
-
runCommand
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommand(File dir, String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
runCommandExplosively
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommandExplosively(File cwd, String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
assertCommandResultSuccessful
public static void assertCommandResultSuccessful(RepositoryHelper.CommandResult commandResult)
-
-