Search in sources :

Example 1 with ExternalLibraryModel

use of org.mule.runtime.api.meta.model.ExternalLibraryModel in project mule by mulesoft.

the class DefaultExtensionModelFactoryTestCase method assertExternalLibraries.

private void assertExternalLibraries(HasExternalLibraries model) {
    assertThat(model.getExternalLibraryModels(), is(notNullValue()));
    assertThat(model.getExternalLibraryModels(), hasSize(1));
    ExternalLibraryModel library = model.getExternalLibraryModels().iterator().next();
    assertThat(library.getName(), is(HEISENBERG_LIB_NAME));
    assertThat(library.getDescription(), is(HEISENBERG_LIB_DESCRIPTION));
    assertThat(library.getRegexMatcher().get(), is(HEISENBERG_LIB_FILE_NAME));
    assertThat(library.getRequiredClassName().get(), is(HEISENBERG_LIB_CLASS_NAME));
}
Also used : ExternalLibraryModel(org.mule.runtime.api.meta.model.ExternalLibraryModel)

Aggregations

ExternalLibraryModel (org.mule.runtime.api.meta.model.ExternalLibraryModel)1