public class RestRepositoryHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Repository |
getGitRepository(GitRepositoryDescriptor repositoryDescriptor)
Creates a Git
Repository object for further usage in tests, e.g. |
static Repository |
getGitRepository(String repositoryUrl)
Creates a Git
Repository object for further usage in tests, e.g. |
static Repository |
getSvnRepository(String repositoryUrl)
Creates an SVN
Repository object for further usage in tests, e.g. |
static Repository |
getSvnRepository(SvnRepositoryDescriptor repositoryDescriptor,
String svnSubDir)
Creates an SVN
Repository object for further usage in tests, e.g. |
static RestRepositoryConfig |
toRestRepositoryConfig(Repository repository,
String repositoryName)
Converts the repository to it's REST representation.
|
@NotNull public static RestRepositoryConfig toRestRepositoryConfig(@NotNull Repository repository, @NotNull String repositoryName)
repository
- repository configurationrepositoryName
- display name of the repository@NotNull public static Repository getGitRepository(@NotNull GitRepositoryDescriptor repositoryDescriptor)
Repository
object for further usage in tests, e.g. with Backdoor.repositories()
.
This method currently does not provide security configuration settings. The repository has to be accessible from
Bamboo.repositoryDescriptor
- repository descriptor, generated e.g. by calling one of LocalGitSetupHelper
methods.@NotNull public static Repository getGitRepository(@NotNull String repositoryUrl)
Repository
object for further usage in tests, e.g. with Backdoor.repositories()
.
This method currently does not provide security configuration settings. The repository has to be accessible from
Bamboo.repositoryUrl
- url to the repository@NotNull public static Repository getSvnRepository(@NotNull SvnRepositoryDescriptor repositoryDescriptor, @NotNull String svnSubDir)
Repository
object for further usage in tests, e.g. with Backdoor.repositories()
.
This method currently does not provide security configuration settings. The repository has to be accessible from
Bamboo.repositoryDescriptor
- repository descriptor, generated e.g. by calling one of LocalRepositorySetupHelper
methods.svnSubDir
- SVN sub directory@NotNull public static Repository getSvnRepository(@NotNull String repositoryUrl)
Repository
object for further usage in tests, e.g. with Backdoor.repositories()
.
This method currently does not provide security configuration settings. The repository has to be accessible from
Bamboo.repositoryUrl
- url to the repositoryCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.