removed test with GroovyShell.evaluate in favor of simple string checking
This commit is contained in:
@@ -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.'''""")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user