本文整理匯總了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);
}
}
}