use of org.mule.runtime.extension.api.loader.xml.XmlExtensionModelLoader in project mule by mulesoft.
the class DetectCyclesTestCase method getExtensionModelFrom.
private ExtensionModel getExtensionModelFrom(String modulePath, String... offendingOperations) {
exception.expectMessage(format(XmlExtensionLoaderDelegate.CYCLIC_OPERATIONS_ERROR, new TreeSet(new HashSet<>(Arrays.asList(offendingOperations))).toString()));
Map<String, Object> parameters = new HashMap<>();
parameters.put(RESOURCE_XML, modulePath);
parameters.put(VALIDATE_XML, validateXml);
return new XmlExtensionModelLoader().loadExtensionModel(getClass().getClassLoader(), getDefault(emptySet()), parameters);
}
Aggregations