Upgrade to cucumber-jvm 1.1.1

This commit is contained in:
Marco Vermeulen
2013-01-26 10:29:09 +00:00
parent 16b1a624c6
commit 3a36efc1da
10 changed files with 11 additions and 13 deletions

View File

@@ -19,8 +19,8 @@ dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '2.0.5'
groovy group: 'org.codehaus.groovy', name: 'groovy-templates', version: '2.0.5'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'info.cukes', name: 'cucumber-groovy', version: '1.0.14'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.0.14'
testCompile group: 'info.cukes', name: 'cucumber-groovy', version: '1.1.1'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.1.1'
testCompile group: 'org.vert-x', name: 'vertx-core', version: '1.3.0.final'
testCompile group: 'org.vert-x', name: 'vertx-lang-groovy', version: '1.3.0.final'
}

View File

@@ -1,6 +1,6 @@
package gvm
import cucumber.junit.Cucumber
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith
@RunWith(Cucumber.class)

View File

@@ -1,6 +1,6 @@
package gvm
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(baseDir, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])

View File

@@ -1,6 +1,6 @@
package gvm
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
Given(~'^no prior Broadcast was received$') { ->
broadcastFile.delete()

View File

@@ -1,6 +1,6 @@
package gvm
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
When(~'^I enter \"([^\"]*)\"$') { String command ->
bash.execute(command)

View File

@@ -1,6 +1,6 @@
package gvm
import static cucumber.runtime.groovy.Hooks.*
import static cucumber.api.groovy.Hooks.*
import static gvm.VertxUtils.*
serviceUrlEnv = "http://localhost:8080"

View File

@@ -3,7 +3,7 @@ package gvm
import java.util.zip.ZipException
import java.util.zip.ZipFile
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
Then(~'^the gvm work folder is created$') { ->
assert gvmDir.isDirectory(), "The gvm directory does not exist."

View File

@@ -1,12 +1,10 @@
package gvm
import cucumber.runtime.PendingException
import java.nio.file.FileSystems
import java.nio.file.Files
import java.nio.file.Path
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
Given(~'^the default "([^"]*)" candidate is "([^"]*)"$') { String candidate, String version ->
def candidateVersion = new URL("${serviceUrlEnv}/candidates/${candidate}/default").text

View File

@@ -1,6 +1,6 @@
package gvm
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
And(~'^the configuration file has been primed with "([^"]*)"$') { String content ->
def configFile = "$gvmDir/etc/config" as File

View File

@@ -2,7 +2,7 @@ package gvm
import java.nio.file.*
import static cucumber.runtime.groovy.EN.*
import static cucumber.api.groovy.EN.*
Then(~'^the candidate "([^"]*)" version "([^"]*)" is in use$') { String candidate, String version ->
def directory = FileSystems.default.getPath("$gvmDir/$candidate/$version")