本文整理汇总了Java中org.ofbiz.base.component.ComponentConfig.getAllTestSuiteInfos方法的典型用法代码示例。如果您正苦于以下问题:Java ComponentConfig.getAllTestSuiteInfos方法的具体用法?Java ComponentConfig.getAllTestSuiteInfos怎么用?Java ComponentConfig.getAllTestSuiteInfos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.ofbiz.base.component.ComponentConfig
的用法示例。
在下文中一共展示了ComponentConfig.getAllTestSuiteInfos方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JunitSuiteWrapper
import org.ofbiz.base.component.ComponentConfig; //导入方法依赖的package包/类
public JunitSuiteWrapper(String componentName, String suiteName, String testCase) {
for (ComponentConfig.TestSuiteInfo testSuiteInfo: ComponentConfig.getAllTestSuiteInfos(componentName)) {
ResourceHandler testSuiteResource = testSuiteInfo.createResourceHandler();
try {
Document testSuiteDocument = testSuiteResource.getDocument();
// TODO create TestSuite object based on this that will contain its TestCase objects
Element documentElement = testSuiteDocument.getDocumentElement();
ModelTestSuite modelTestSuite = new ModelTestSuite(documentElement, testCase);
// make sure there are test-cases configured for the suite
if (suiteName != null && !modelTestSuite.getSuiteName().equals(suiteName)) {
continue;
}
if (modelTestSuite.getTestList().size() > 0) {
this.modelTestSuiteList.add(modelTestSuite);
}
} catch (GenericConfigException e) {
String errMsg = "Error reading XML document from ResourceHandler for loader [" + testSuiteResource.getLoaderName() + "] and location [" + testSuiteResource.getLocation() + "]";
Debug.logError(e, errMsg, module);
}
}
}