use of org.mule.runtime.module.extension.internal.loader.enricher.ExtensionDescriptionsEnricher in project mule by mulesoft.
the class ExtensionDescriptionDocumenterTestCase method loadDocumentationFromFile.
@Test
public void loadDocumentationFromFile() {
ClassLoader cl = currentThread().getContextClassLoader();
ExtensionLoadingContext ctx = new DefaultExtensionLoadingContext(cl, getDefault(emptySet()));
DefaultJavaModelLoaderDelegate loader = new DefaultJavaModelLoaderDelegate(extensionClass, "1.0.0-dev");
loader.declare(ctx);
ExtensionDescriptionsEnricher enricher = new ExtensionDescriptionsEnricher();
enricher.enrich(ctx);
ExtensionModelFactory factory = new ExtensionModelFactory();
ExtensionModel extensionModel = factory.create(ctx);
assertDescribedExtensionModel(extensionModel);
}
Aggregations