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