Examples of testCasesByName()


Examples of org.sonar.api.test.MutableTestPlan.testCasesByName()

    File mainRes = getMainResource(testCaseCoverage.coveredFile());
    Testable testAbleFile = perspectives.as(MutableTestable.class, mainRes);
    if (testAbleFile != null) {
      MutableTestPlan testPlan = perspectives.as(MutableTestPlan.class, testRes);
      if (testPlan != null) {
        for (MutableTestCase mutableTestCase : testPlan.testCasesByName(testCaseCoverage.testName())) {
          mutableTestCase.setCoverageBlock(testAbleFile, testCaseCoverage.coveredLines());
        }
      } else {
        throw new IllegalStateException("Unable to get MutableTestPlan perspective from " + testRes);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.