org.mule.tools.automationtestcoverage.inspectors
Class TestSourcesInspector

java.lang.Object
  extended by org.mule.tools.automationtestcoverage.inspectors.TestSourcesInspector

public class TestSourcesInspector
extends Object


Constructor Summary
TestSourcesInspector(Messager messager, RoundEnvironment environment, String projectPath)
           
 
Method Summary
 TestSourceItemInfo addOperationsInFileToTestSourceItemInfo(File inputFile, TestSourceItemInfo testSourceItemInfo)
           
 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
 void recursiveInspectTestSources(TypeElement e, String connectorXmlPrefix, List<TestSourceItemInfo> listTestSourceItemInfo, File currentDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSourcesInspector

public TestSourcesInspector(Messager messager,
                            RoundEnvironment environment,
                            String projectPath)
Method Detail

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.