mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-23 01:47:54 -05:00
Upgrade to cucumber-jvm 1.1.1
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package gvm
|
||||
|
||||
import cucumber.junit.Cucumber
|
||||
import cucumber.api.junit.Cucumber
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
@RunWith(Cucumber.class)
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user