org.mule.tools.automationtestcoverage.inspectors
Class TestSourcesInspector
java.lang.Object
org.mule.tools.automationtestcoverage.inspectors.TestSourcesInspector
public class TestSourcesInspector
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestSourcesInspector
public TestSourcesInspector(Messager messager,
RoundEnvironment environment,
String projectPath)
inspectTestSourcesForCallsToFlows
public List<TestSourceItemInfo> inspectTestSourcesForCallsToFlows(TypeElement e,
String connectorXmlPrefix)
- Scan test/src for all the files annotated as .java
Look for all the references to the operation lookupMessageProcessor(flowName) and relieve the flowName
Map the flowName with all the operations that it calls
Register all the operations as covered
recursiveInspectTestSources
public void recursiveInspectTestSources(TypeElement e,
String connectorXmlPrefix,
List<TestSourceItemInfo> listTestSourceItemInfo,
File currentDirectory)
addOperationsInFileToTestSourceItemInfo
public TestSourceItemInfo addOperationsInFileToTestSourceItemInfo(File inputFile,
TestSourceItemInfo testSourceItemInfo)
throws IOException
- Throws:
IOException
Copyright © 2014. All rights reserved.