Search in sources :

Example 11 with ResolverSet

use of org.mule.runtime.module.extension.internal.runtime.resolver.ResolverSet in project mule by mulesoft.

the class ConfigurationObjectBuilderTestCase method createResolverSet.

public static ResolverSet createResolverSet() throws Exception {
    ResolverSet resolverSet = new ResolverSet(mock(MuleContext.class));
    resolverSet.add(nameParameterModel.getName(), getResolver(NAME_VALUE));
    resolverSet.add(descriptionParameterModel.getName(), getResolver(DESCRIPTION_VALUE));
    return resolverSet;
}
Also used : ResolverSet(org.mule.runtime.module.extension.internal.runtime.resolver.ResolverSet) MuleContext(org.mule.runtime.core.api.MuleContext)

Aggregations

ResolverSet (org.mule.runtime.module.extension.internal.runtime.resolver.ResolverSet)11 MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)4 Test (org.junit.Test)2 MuleContext (org.mule.runtime.core.api.MuleContext)2 ConfigurationException (org.mule.runtime.core.api.config.ConfigurationException)2 ClassUtils.withContextClassLoader (org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader)2 ImplicitObjectUtils.buildImplicitResolverSet (org.mule.runtime.module.extension.internal.loader.utils.ImplicitObjectUtils.buildImplicitResolverSet)2 ConnectionProviderResolver (org.mule.runtime.module.extension.internal.runtime.resolver.ConnectionProviderResolver)2 ImplicitConnectionProviderValueResolver (org.mule.runtime.module.extension.internal.runtime.resolver.ImplicitConnectionProviderValueResolver)2 SmallTest (org.mule.tck.size.SmallTest)2 HeisenbergExtension (org.mule.test.heisenberg.extension.HeisenbergExtension)2 String.format (java.lang.String.format)1 Thread.currentThread (java.lang.Thread.currentThread)1 Optional (java.util.Optional)1 Optional.empty (java.util.Optional.empty)1 Optional.ofNullable (java.util.Optional.ofNullable)1 MetadataType (org.mule.metadata.api.model.MetadataType)1 MuleException (org.mule.runtime.api.exception.MuleException)1 I18nMessageFactory.createStaticMessage (org.mule.runtime.api.i18n.I18nMessageFactory.createStaticMessage)1 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)1