public class CoverageTestRunState extends Object
| Constructor and Description |
|---|
CoverageTestRunState() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoveredElement(CoveredElement coveredElement)
Adds the covered element to the current test run coverage.
|
void |
endCoveredElement(CoveredElement coveredElement)
Mark a covered element execution as ended.
|
ClassCoverage |
getClassCoverage()
Retrieves the class coverage.
|
MethodCoverage |
getCurrentTestMethodCoverage()
Retrieves the currently executing test method coverage.
|
String |
getCurrentTestMethodName()
Retrieves the name of the currently executing test method.
|
String |
getTestClassName() |
MethodCoverage |
getTestMethodCoverage(String testName)
Retrieves the coverage for a test method.
|
void |
initializeTestMethodCoverage(org.camunda.bpm.engine.ProcessEngine processEngine,
String deploymentId,
List<org.camunda.bpm.engine.repository.ProcessDefinition> processDefinitions,
String testName)
Adds a test method to the class coverage.
|
void |
setCurrentTestMethodName(String currentTestName)
Sets the name of the currently executing test mehod.
|
void |
setExcludedProcessDefinitionKeys(List<String> excludedProcessDefinitionKeys) |
void |
setTestClassName(String className) |
public void addCoveredElement(CoveredElement coveredElement)
coveredElement - public void endCoveredElement(CoveredElement coveredElement)
coveredElement - public void initializeTestMethodCoverage(org.camunda.bpm.engine.ProcessEngine processEngine,
String deploymentId,
List<org.camunda.bpm.engine.repository.ProcessDefinition> processDefinitions,
String testName)
processEngine - deploymentId - The deployment ID of the test method run. (Hint: Every test
method run has its own deployment.)processDefinitions - The process definitions of the test method deployment.testName - The name of the test method.public MethodCoverage getTestMethodCoverage(String testName)
testName - public MethodCoverage getCurrentTestMethodCoverage()
public ClassCoverage getClassCoverage()
public String getCurrentTestMethodName()
public void setCurrentTestMethodName(String currentTestName)
currentTestName - public String getTestClassName()
public void setTestClassName(String className)
Copyright © 2017 camunda services GmbH. All rights reserved.