public class CommitDescriptorTestUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MASTER_BRANCH_NAME
The name of the master branch.
|
static java.lang.String |
OTHER_BRANCH_NAME
The default name for commits on a branch.
|
Constructor and Description |
---|
CommitDescriptorTestUtils() |
Modifier and Type | Method and Description |
---|---|
static CommitDescriptor |
branchCommit(long timestamp)
Creates a
CommitDescriptor with branch name branch and given
timestamp. |
static CommitDescriptor |
masterCommit(long timestamp)
Creates a
CommitDescriptor with branch name master and given
timestamp. |
static ParentedCommitDescriptor |
mergeCommit(CommitDescriptor mergeCommit,
CommitDescriptor firstParent,
CommitDescriptor mergedParent,
CommitDescriptor... additionalMergedParents)
Creates a merge
ParentedCommitDescriptor with given parents. |
static CommitDescriptor |
trunkCommit(long timestamp)
Creates a
CommitDescriptor for given timestamp with branch as
TRUNK_BRANCH_NAME |
public static final java.lang.String MASTER_BRANCH_NAME
public static final java.lang.String OTHER_BRANCH_NAME
public CommitDescriptorTestUtils()
public static CommitDescriptor masterCommit(long timestamp)
CommitDescriptor
with branch name master
and given
timestamp.public static CommitDescriptor branchCommit(long timestamp)
CommitDescriptor
with branch name branch
and given
timestamp.public static CommitDescriptor trunkCommit(long timestamp)
CommitDescriptor
for given timestamp with branch as
TRUNK_BRANCH_NAME
public static ParentedCommitDescriptor mergeCommit(CommitDescriptor mergeCommit, CommitDescriptor firstParent, CommitDescriptor mergedParent, CommitDescriptor... additionalMergedParents)
ParentedCommitDescriptor
with given parents.