removed test with GroovyShell.evaluate in favor of simple string checking

This commit is contained in:
Milosz Rembisz
2015-11-25 13:10:08 +01:00
parent 545abbb9b5
commit 7bffbf6c72
2 changed files with 2 additions and 7 deletions

View File

@@ -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.'''""")
}
}

View File

@@ -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')
}