Package jetbrains.buildServer.vcs
Class MockSVcsRoot
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsRootImpl
-
- jetbrains.buildServer.vcs.impl.SVcsRootImpl
-
- jetbrains.buildServer.vcs.MockSVcsRoot
-
- All Implemented Interfaces:
Comparable<SVcsRoot>
,Loggable
,SPersistentEntity
,LVcsRoot
,SVcsRoot
,SVcsRootAccess
,SVcsRootEx
,SVcsRootUpdate
,SVcsRootUsages
,VcsRoot
@Deprecated public class MockSVcsRoot extends SVcsRootImpl
Deprecated.since 8.0, use VcsRootImpl if you need to construct VCS root in tests
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.vcs.impl.SVcsRootImpl
myContext
-
Fields inherited from class jetbrains.buildServer.vcs.impl.VcsRootImpl
BRANCH_SPEC_PROP, CHECKOUT_ROOT, UNKNOWN_ROOT_NAME, VCS_NAME_PROP, VCS_ROOT_NAME_PROP
-
Fields inherited from interface jetbrains.buildServer.vcs.VcsRoot
SECURE_PROPERTY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description MockSVcsRoot(long id, String vcsName)
Deprecated.MockSVcsRoot(String vcsName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
checkModificationAllowed()
Deprecated.String
getDescription()
Deprecated.int
getModificationCheckInterval()
Deprecated.returns modification check interval in secondsString
getName()
Deprecated.returns descriptive name of the vcs rootint
getNumberOfUsagesInProjects()
Deprecated.Map<SBuildType,CheckoutRules>
getUsages()
Deprecated.Collection<SProject>
getUsagesInProjects()
Deprecated.String
getVcsDisplayName()
Deprecated.Returns VCS plugin display namevoid
setName(String name)
Deprecated.Changes connection name.-
Methods inherited from class jetbrains.buildServer.vcs.impl.SVcsRootImpl
checkAccessibleFrom, checkAccessibleFrom, compareTo, compareTo, createConfigAction, describe, getAccessibleProjects, getBranchSpec, getConfigDirectory, getConfigId, getConfigurationFile, getConfigurationFile, getEntityId, getExternalId, getLastConfigModificationAction, getParent, getProject, getReadOnlyReason, getResolvedBranchSpec, getScope, getSimpleName, getUsagesInConfigurations, getVersion, init, isAccessibleFrom, isAccessibleFrom, isAliasExternalId, isBranchSpecDefined, isEmptyUuid, isReadOnly, isUseDefaultModificationCheckInterval, isUsedInProjects, markPersisted, markUnedited, moveToProject, moveToProject, persist, persist, remove, restoreDefaultModificationCheckInterval, schedulePersisting, schedulePersisting, schedulePersisting, scheduleRemove, sendExtIdChangedEvents, setExternalId, setExternalId, setExternalId, setModificationCheckInterval, setProperties, setVcsName, toString, unregister
-
Methods inherited from class jetbrains.buildServer.vcs.impl.VcsRootImpl
addProperty, equals, getId, getProperties, getProperty, getProperty, getVcsName, hashCode, isEquivalentRoots
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.SPersistentEntity
isVirtual
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsRoot
getId, getProperties, getProperty, getProperty, getVcsName
-
-
-
-
Method Detail
-
checkModificationAllowed
protected void checkModificationAllowed()
Deprecated.- Overrides:
checkModificationAllowed
in classSVcsRootImpl
-
getModificationCheckInterval
public int getModificationCheckInterval()
Deprecated.Description copied from interface:SVcsRoot
returns modification check interval in seconds- Specified by:
getModificationCheckInterval
in interfaceSVcsRoot
- Overrides:
getModificationCheckInterval
in classSVcsRootImpl
- Returns:
- modification check interval configured for the root.
-
getDescription
@NotNull public String getDescription()
Deprecated.- Specified by:
getDescription
in interfaceLVcsRoot
- Overrides:
getDescription
in classSVcsRootImpl
- Returns:
- short human readable description of the root. Composed by underlying VCS support.
-
getVcsDisplayName
@NotNull public String getVcsDisplayName()
Deprecated.Description copied from interface:LVcsRoot
Returns VCS plugin display name- Specified by:
getVcsDisplayName
in interfaceLVcsRoot
- Overrides:
getVcsDisplayName
in classSVcsRootImpl
- Returns:
- see above, returns null if VCS plugin corresponding to VCS root does not exist
-
getUsages
@NotNull public Map<SBuildType,CheckoutRules> getUsages()
Deprecated.- Specified by:
getUsages
in interfaceSVcsRootUsages
- Overrides:
getUsages
in classSVcsRootImpl
- Returns:
- This method returns all usages of this VCS root in various build configurations + its checkout rules
-
getNumberOfUsagesInProjects
public int getNumberOfUsagesInProjects()
Deprecated.- Specified by:
getNumberOfUsagesInProjects
in interfaceSVcsRootUsages
- Overrides:
getNumberOfUsagesInProjects
in classSVcsRootImpl
- Returns:
- number of projects using this VCS root in their templates or configurations.
-
getUsagesInProjects
@NotNull public Collection<SProject> getUsagesInProjects()
Deprecated.- Specified by:
getUsagesInProjects
in interfaceSVcsRootUsages
- Overrides:
getUsagesInProjects
in classSVcsRootImpl
- Returns:
- projects using this VCS root in their templates or configurations.
-
getName
@NotNull public String getName()
Deprecated.Description copied from interface:VcsRoot
returns descriptive name of the vcs root- Specified by:
getName
in interfaceSPersistentEntity
- Specified by:
getName
in interfaceVcsRoot
- Overrides:
getName
in classVcsRootImpl
- Returns:
- see above
-
setName
public void setName(@NotNull String name)
Deprecated.Description copied from class:SVcsRootImpl
Changes connection name.- Specified by:
setName
in interfaceSVcsRootUpdate
- Overrides:
setName
in classSVcsRootImpl
- Parameters:
name
- new connection name.
-
-