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 voidcheckModificationAllowed()Deprecated.StringgetDescription()Deprecated.intgetModificationCheckInterval()Deprecated.returns modification check interval in secondsStringgetName()Deprecated.returns descriptive name of the vcs rootintgetNumberOfUsagesInProjects()Deprecated.Map<SBuildType,CheckoutRules>getUsages()Deprecated.Collection<SProject>getUsagesInProjects()Deprecated.StringgetVcsDisplayName()Deprecated.Returns VCS plugin display namevoidsetName(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:
checkModificationAllowedin classSVcsRootImpl
-
getModificationCheckInterval
public int getModificationCheckInterval()
Deprecated.Description copied from interface:SVcsRootreturns modification check interval in seconds- Specified by:
getModificationCheckIntervalin interfaceSVcsRoot- Overrides:
getModificationCheckIntervalin classSVcsRootImpl- Returns:
- modification check interval configured for the root.
-
getDescription
@NotNull public String getDescription()
Deprecated.- Specified by:
getDescriptionin interfaceLVcsRoot- Overrides:
getDescriptionin classSVcsRootImpl- Returns:
- short human readable description of the root. Composed by underlying VCS support.
-
getVcsDisplayName
@NotNull public String getVcsDisplayName()
Deprecated.Description copied from interface:LVcsRootReturns VCS plugin display name- Specified by:
getVcsDisplayNamein interfaceLVcsRoot- Overrides:
getVcsDisplayNamein 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:
getUsagesin interfaceSVcsRootUsages- Overrides:
getUsagesin 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:
getNumberOfUsagesInProjectsin interfaceSVcsRootUsages- Overrides:
getNumberOfUsagesInProjectsin classSVcsRootImpl- Returns:
- number of projects using this VCS root in their templates or configurations.
-
getUsagesInProjects
@NotNull public Collection<SProject> getUsagesInProjects()
Deprecated.- Specified by:
getUsagesInProjectsin interfaceSVcsRootUsages- Overrides:
getUsagesInProjectsin classSVcsRootImpl- Returns:
- projects using this VCS root in their templates or configurations.
-
getName
@NotNull public String getName()
Deprecated.Description copied from interface:VcsRootreturns descriptive name of the vcs root- Specified by:
getNamein interfaceSPersistentEntity- Specified by:
getNamein interfaceVcsRoot- Overrides:
getNamein classVcsRootImpl- Returns:
- see above
-
setName
public void setName(@NotNull String name)Deprecated.Description copied from class:SVcsRootImplChanges connection name.- Specified by:
setNamein interfaceSVcsRootUpdate- Overrides:
setNamein classSVcsRootImpl- Parameters:
name- new connection name.
-
-