From 9d16cc051fc3f04a71ac5e644a80198b90bb8bb7 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 7 Oct 2015 11:29:24 +0200 Subject: [PATCH] Revert "Set UTF-8 encoding when loading stubs" --- .../groovy/io/codearte/accurest/builder/MethodBuilder.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accurest-core/src/main/groovy/io/codearte/accurest/builder/MethodBuilder.groovy b/accurest-core/src/main/groovy/io/codearte/accurest/builder/MethodBuilder.groovy index 55a0f66f36..c4e8da6d04 100644 --- a/accurest-core/src/main/groovy/io/codearte/accurest/builder/MethodBuilder.groovy +++ b/accurest-core/src/main/groovy/io/codearte/accurest/builder/MethodBuilder.groovy @@ -6,7 +6,6 @@ import io.codearte.accurest.config.TestFramework import io.codearte.accurest.config.TestMode import io.codearte.accurest.dsl.GroovyDsl import io.codearte.accurest.util.NamesUtil -import org.codehaus.groovy.control.CompilerConfiguration /** * @author Jakub Kubrynski @@ -26,7 +25,7 @@ class MethodBuilder { static MethodBuilder createTestMethod(File stubsFile, AccurestConfigProperties configProperties) { log.debug("Stub content from file [${stubsFile.text}]") - GroovyDsl stubContent = new GroovyShell(this.classLoader, new Binding(), new CompilerConfiguration(sourceEncoding:'UTF-8')).evaluate(stubsFile) + GroovyDsl stubContent = new GroovyShell(this.classLoader).evaluate(stubsFile) log.debug("Stub content Groovy DSL [$stubContent]") String methodName = NamesUtil.camelCase(NamesUtil.toLastDot(NamesUtil.afterLast(stubsFile.path, File.separator))) return new MethodBuilder(methodName, stubContent, configProperties)