public class TestExecutionWithPartition extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
TestExecutionWithPartition(TestExecution testExecution,
java.lang.String partition,
CommitDescriptor commit,
java.util.Collection<CommitDescriptor> predecessorCommits) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
CommitDescriptor |
getCommit() |
java.lang.String |
getPartition() |
java.util.List<CommitDescriptor> |
getPredecessorCommits() |
TestExecution |
getTestExecution() |
int |
hashCode() |
boolean |
isArtificialMergeTestExecution()
Returns true if this is a
TestExecutionWithPartition which was
created for a merge commit and doesn't represent a real test execution. |
static TestExecutionWithPartition |
merge(CommitDescriptor mergeCommit,
java.util.Collection<TestExecutionWithPartition> testExecutionsWithPartition)
Merges a
Collection of TestExecutionWithPartitions to a
single one. |
java.lang.String |
toString() |
public TestExecutionWithPartition(TestExecution testExecution, java.lang.String partition, CommitDescriptor commit, java.util.Collection<CommitDescriptor> predecessorCommits)
public TestExecution getTestExecution()
testExecutionpublic java.lang.String getPartition()
partitionpublic CommitDescriptor getCommit()
commitpublic java.util.List<CommitDescriptor> getPredecessorCommits()
predecessorCommitspublic boolean isArtificialMergeTestExecution()
TestExecutionWithPartition which was
created for a merge commit and doesn't represent a real test execution.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static TestExecutionWithPartition merge(CommitDescriptor mergeCommit, java.util.Collection<TestExecutionWithPartition> testExecutionsWithPartition)
Collection of TestExecutionWithPartitions to a
single one. Result is the the worst ETestExecutionResult with average
duration in case there are is more than on TestExecutionWithPartition
present.