public class MethodCoverage extends Object implements AggregatedCoverage
| Constructor and Description |
|---|
MethodCoverage(String deploymentId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoveredElement(CoveredElement element)
Add a covered element to the method coverage.
|
void |
addProcessCoverage(ProcessCoverage processCoverage)
Add a process coverage to the method coverage.
|
void |
endCoveredElement(CoveredElement element)
Mark a covered element execution as ended.
|
double |
getCoveragePercentage()
Retrieves the coverage percentage for all process definitions deployed
with the method.
|
Set<String> |
getCoveredFlowNodeIds(String processDefinitionKey)
Retrieves a set of element IDs of covered flow nodes of the process definition identified by the passed key.
|
Set<CoveredFlowNode> |
getCoveredFlowNodes()
Retrieves a set of covered flow nodes of the process definitions deployed by this test method.
|
Set<CoveredFlowNode> |
getCoveredFlowNodes(String processDefinitionKey)
Retrieves covered flow nodes for the given process definition key.
|
Set<String> |
getCoveredSequenceFlowIds(String processDefinitionKey)
Retrieves a set of element IDs of sequence flows of the process definition identified by the passed key.
|
Set<CoveredSequenceFlow> |
getCoveredSequenceFlows()
Retrieves a set of covered sequence flows of the process definitions deployed by this test method.
|
Set<org.camunda.bpm.engine.repository.ProcessDefinition> |
getProcessDefinitions()
Retrieves the process definitions of the test method's deployment.
|
Set<org.camunda.bpm.model.bpmn.instance.FlowNode> |
getProcessDefinitionsFlowNodes()
Retrieves the flow nodes of all the process definitions in the method deployment.
|
Set<org.camunda.bpm.model.bpmn.instance.SequenceFlow> |
getProcessDefinitionsSequenceFlows()
Retrieves the sequence flows of all the process definitions in the method deployment.
|
String |
toString() |
public MethodCoverage(String deploymentId)
public void addProcessCoverage(ProcessCoverage processCoverage)
processCoverage - public void addCoveredElement(CoveredElement element)
element - public void endCoveredElement(CoveredElement element)
element - public double getCoveragePercentage()
getCoveragePercentage in interface AggregatedCoveragepublic Set<org.camunda.bpm.model.bpmn.instance.FlowNode> getProcessDefinitionsFlowNodes()
public Set<org.camunda.bpm.model.bpmn.instance.SequenceFlow> getProcessDefinitionsSequenceFlows()
public Set<CoveredFlowNode> getCoveredFlowNodes()
public Set<CoveredSequenceFlow> getCoveredSequenceFlows()
public Set<String> getCoveredFlowNodeIds(String processDefinitionKey)
getCoveredFlowNodeIds in interface AggregatedCoveragepublic Set<CoveredFlowNode> getCoveredFlowNodes(String processDefinitionKey)
AggregatedCoveragegetCoveredFlowNodes in interface AggregatedCoveragepublic Set<String> getCoveredSequenceFlowIds(String processDefinitionKey)
getCoveredSequenceFlowIds in interface AggregatedCoveragepublic Set<org.camunda.bpm.engine.repository.ProcessDefinition> getProcessDefinitions()
getProcessDefinitions in interface AggregatedCoverageCopyright © 2017 camunda services GmbH. All rights reserved.