public class RepositoryModificationTestHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createFileInCheckoutPath(File checkoutPath)
Create a random file in the working copy.
|
static void |
deleteFileFromCheckoutPath(File checkoutPath)
Delete a random file from the working copy.
|
static File |
getRepositoryTrackedFile(File fileOrDirectory)
Try to find any repository tracked file.
|
static void |
leaveCheckoutPathUnmodified(File checkoutPath)
Do nothing with the working copy.
|
static void |
modifyFileInCheckoutPath(File checkoutPath)
Modifies content of a random file in the working copy.
|
public static void leaveCheckoutPathUnmodified(@NotNull File checkoutPath)
public static void createFileInCheckoutPath(@NotNull File checkoutPath)
public static void deleteFileFromCheckoutPath(@NotNull File checkoutPath)
public static void modifyFileInCheckoutPath(@NotNull File checkoutPath)
@Nullable public static File getRepositoryTrackedFile(@NotNull File fileOrDirectory)
fileOrDirectory
- either a directory to scan or a file to testCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.