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 TestExecutionWithPartition s 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()
testExecution
public java.lang.String getPartition()
partition
public CommitDescriptor getCommit()
commit
public java.util.List<CommitDescriptor> getPredecessorCommits()
predecessorCommits
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static TestExecutionWithPartition merge(CommitDescriptor mergeCommit, java.util.Collection<TestExecutionWithPartition> testExecutionsWithPartition)
Collection
of TestExecutionWithPartition
s to a
single one. Result is the the worst ETestExecutionResult
with average
duration in case there are is more than on TestExecutionWithPartition
present.