Class MockVcsModificationWithId
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.MockVcsModification
-
- jetbrains.buildServer.serverSide.impl.MockVcsModificationWithId
-
- All Implemented Interfaces:
Comparable<VcsModification>,ChangeDescriptor,VcsModificationEx,Modification,SVcsModification,VcsModification
public class MockVcsModificationWithId extends MockVcsModification implements VcsModificationEx
Created by Nikita.Skvortsov Date: 3/12/12, 4:40 PM
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.MockVcsModification
myChanges, myDate, myDecription, myUser
-
-
Constructor Summary
Constructors Constructor Description MockVcsModificationWithId(String user, String decription, Date date, long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VcsModification o)byte[]getContentAfter(VcsChangeInfo change)byte[]getContentBefore(VcsChangeInfo change)List<FilteredVcsChange>getFilteredChanges(CheckoutRules rules)Returns list of changed files filtered according to given checkout rules.longgetId()Unique identifier for the modificationList<String>getRelatedConfigurationIds(boolean ignoreOverridden)Returns configurations ids this modification is related to.booleanisRelatedTo(SBuildType buildType)voidresetRelatedConfigurations()-
Methods inherited from class jetbrains.buildServer.serverSide.impl.MockVcsModification
addChange, consumeEdgeRelations, consumeRelations, consumeRelations, createWithOneChangedFile, createWithoutFiles, detachedFromConfigurations, findChangeByPath, getAssociatedData, getAttributes, getBuildTypeRelations, getChangeCount, getChanges, getCommitDate, getCommiterName, getCommitterIds, getCommitters, getContext, getDate, getDescription, getDisplayVersion, getDuplicates, getFilteredChanges, getFilteredChanges, getFilteredChanges, getFirstBuilds, getNumberOfRelatedConfigurations, getParentModifications, getParentRevisions, getPersonalChangeInfo, getProject, getReachableVcsBranches, getRegistrationDate, getRelatedBuildTypeIds, getRelatedConfigurations, getRelatedIssues, getRelatedProjects, getRelatedVcsChange, getRelation, getRelationTypes, getType, getUserName, getVcsDate, getVcsRoot, getVersion, getVersionControlName, hasRelation, isCanBeIgnored, isCommitter, isDuplicateOf, isHasRelatedIssues, isPersonal, isRelatedTo, isRelatedTo, isRelatedTo, isRelatedTo, processRelations, relatedConfigurationsLoaded, relatedToBuildConfigurationsAccessibleTo, resetEdgeRelations, setCanBeIgnored, setDescription, setPesonal, setRoot, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ChangeDescriptor
getAssociatedData, getDate, getDescription, getRelatedVcsChange, getType
-
Methods inherited from interface jetbrains.buildServer.vcs.Modification
getDescription, getUserName, getVcsDate
-
Methods inherited from interface jetbrains.buildServer.vcs.SVcsModification
getAttributes, getBuildTypeRelations, getCommitDate, getCommitterIds, getCommitters, getDuplicates, getFilteredChanges, getFilteredChanges, getFilteredChanges, getFirstBuilds, getNumberOfRelatedConfigurations, getParentModifications, getParentRevisions, getPersonalChangeInfo, getRegistrationDate, getRelatedConfigurations, getRelatedIssues, getRelatedProjects, getVcsRoot, hasRelation, isCommitter, isHasRelatedIssues, relatedToBuildConfigurationsAccessibleTo, setDescription
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsModification
findChangeByPath, getChangeCount, getChanges, getDisplayVersion, getVersion, getVersionControlName, isPersonal
-
Methods inherited from interface jetbrains.buildServer.vcs.impl.VcsModificationEx
consumeEdgeRelations, consumeRelations, consumeRelations, detachedFromConfigurations, getCommiterName, getContext, getReachableVcsBranches, getRelatedBuildTypeIds, getRelation, getRelationTypes, isDuplicateOf, isRelatedTo, isRelatedTo, isRelatedTo, isRelatedTo, processRelations, relatedConfigurationsLoaded, resetEdgeRelations
-
-
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:VcsModificationUnique identifier for the modification- Specified by:
getIdin interfaceVcsModification- Overrides:
getIdin classMockVcsModification- Returns:
- unique identifier of the modification
-
compareTo
public int compareTo(VcsModification o)
- Specified by:
compareToin interfaceComparable<VcsModification>- Overrides:
compareToin classMockVcsModification
-
getContentBefore
@NotNull public byte[] getContentBefore(@NotNull VcsChangeInfo change) throws VcsException- Specified by:
getContentBeforein interfaceVcsModificationEx- Overrides:
getContentBeforein classMockVcsModification- Throws:
VcsException
-
getContentAfter
@NotNull public byte[] getContentAfter(@NotNull VcsChangeInfo change) throws VcsException- Specified by:
getContentAfterin interfaceVcsModificationEx- Overrides:
getContentAfterin classMockVcsModification- Throws:
VcsException
-
getRelatedConfigurationIds
@NotNull public List<String> getRelatedConfigurationIds(boolean ignoreOverridden)
Description copied from interface:VcsModificationExReturns configurations ids this modification is related to.- Specified by:
getRelatedConfigurationIdsin interfaceVcsModificationEx- Overrides:
getRelatedConfigurationIdsin classMockVcsModification- Parameters:
ignoreOverridden- if true does not return configurations where this modification was attached via overridden root- Returns:
- sorted list of build configuration ids
-
isRelatedTo
public boolean isRelatedTo(@NotNull SBuildType buildType)- Specified by:
isRelatedToin interfaceVcsModificationEx- Overrides:
isRelatedToin classMockVcsModification- Parameters:
buildType- build configuration- Returns:
- true if this modification is attached to specified build configuration.
-
resetRelatedConfigurations
public void resetRelatedConfigurations()
- Specified by:
resetRelatedConfigurationsin interfaceVcsModificationEx- Overrides:
resetRelatedConfigurationsin classMockVcsModification
-
getFilteredChanges
@NotNull public List<FilteredVcsChange> getFilteredChanges(@NotNull CheckoutRules rules)
Description copied from interface:VcsModificationExReturns list of changed files filtered according to given checkout rules.- Specified by:
getFilteredChangesin interfaceVcsModificationEx- Overrides:
getFilteredChangesin classMockVcsModification- Parameters:
rules- checkout rules to filter by.- Returns:
- list of filtered changed files.
-
-