diff --git a/dsl/src/test/java/org/mule/test/config/ast/BasicModule.java b/dsl/src/test/java/org/mule/test/config/ast/BasicModule.java index 93a1d93641..12763d31bf 100644 --- a/dsl/src/test/java/org/mule/test/config/ast/BasicModule.java +++ b/dsl/src/test/java/org/mule/test/config/ast/BasicModule.java @@ -9,10 +9,12 @@ import static org.mule.runtime.api.config.MuleRuntimeFeature.ENFORCE_EXPRESSION_VALIDATION; import static org.mule.tck.config.WeaveExpressionLanguageFactoryServiceProvider.provideDefaultExpressionLanguageFactoryService; +import static java.nio.charset.StandardCharsets.UTF_8; import static java.util.Collections.emptyList; import static java.util.Collections.singletonMap; import static java.util.Optional.of; +import org.mule.runtime.api.config.ArtifactEncoding; import org.mule.runtime.api.config.FeatureFlaggingService; import org.mule.runtime.api.el.ExpressionLanguage; import org.mule.runtime.ast.api.validation.ArtifactAstValidatorBuilder; @@ -24,6 +26,7 @@ import org.mule.runtime.core.api.MuleContext; import org.mule.runtime.core.api.el.ExtendedExpressionManager; import org.mule.runtime.core.api.transformer.Transformer; +import org.mule.runtime.core.internal.config.DefaultArtifactEncoding; import org.mule.runtime.core.internal.context.DefaultMuleContext; import org.mule.runtime.core.internal.el.DefaultExpressionManager; import org.mule.runtime.core.internal.registry.TransformerResolver; @@ -98,5 +101,11 @@ public Collection provideCollectionTransformer() { public List provideListTransformerResolver() { return emptyList(); } + + @Provides + @Singleton + public ArtifactEncoding provideArtifactEncoding() { + return new DefaultArtifactEncoding(UTF_8.name()); + } }