From 7bffbf6c7293570e991fc7657ccf778bb4bf0b4b Mon Sep 17 00:00:00 2001 From: Milosz Rembisz Date: Wed, 25 Nov 2015 13:10:08 +0100 Subject: [PATCH] removed test with GroovyShell.evaluate in favor of simple string checking --- .../accurest/builder/MockMvcSpockMethodBuilderSpec.groovy | 8 ++------ build.gradle | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/accurest-core/src/test/groovy/io/codearte/accurest/builder/MockMvcSpockMethodBuilderSpec.groovy b/accurest-core/src/test/groovy/io/codearte/accurest/builder/MockMvcSpockMethodBuilderSpec.groovy index 7a87a965d0..56da904a8e 100644 --- a/accurest-core/src/test/groovy/io/codearte/accurest/builder/MockMvcSpockMethodBuilderSpec.groovy +++ b/accurest-core/src/test/groovy/io/codearte/accurest/builder/MockMvcSpockMethodBuilderSpec.groovy @@ -1,15 +1,12 @@ package io.codearte.accurest.builder - import io.codearte.accurest.dsl.GroovyDsl import io.codearte.accurest.dsl.WireMockStubStrategy import io.codearte.accurest.dsl.WireMockStubVerifier -import org.codehaus.groovy.control.CompilationFailedException import spock.lang.Issue import spock.lang.Specification import spock.lang.Unroll import java.util.regex.Pattern - /** * @author Jakub Kubrynski */ @@ -834,10 +831,9 @@ World.''') when: builder.given(blockBuilder) def spockTest = blockBuilder.toString() - new GroovyShell(this.class.classLoader).evaluate("""import static com.jayway.restassured.module.mockmvc.RestAssuredMockMvc.* -$spockTest""") then: - notThrown(CompilationFailedException) + spockTest.contains("""'''hello, +World.'''""") } } diff --git a/build.gradle b/build.gradle index 4b59672fc8..42d265f044 100644 --- a/build.gradle +++ b/build.gradle @@ -74,7 +74,6 @@ project(':accurest-core') { compile "com.github.tomakehurst:wiremock:$wiremockVersion" testCompile 'cglib:cglib-nodep:2.2' testCompile 'org.objenesis:objenesis:2.1' - testCompile 'com.jayway.restassured:spring-mock-mvc:2.5.0' testCompile project(':accurest-testing-utils') }