diff --git a/README.adoc b/README.adoc
index ae927c8..2f29e05 100644
--- a/README.adoc
+++ b/README.adoc
@@ -76,7 +76,7 @@ The Jars will be copied to `build/output/lib`. The comments in `build.gradle` ex
* http://groovy-lang.org/[Groovy homepage]
* http://maven.apache.org[Maven homepage]
-If you have any comments or questions, please direct them to the Spock discussion group. All feedback is appreciated!
+If you have any comments or questions, please direct them to the Spock discussion group. We appreciate all feedback!
Happy spec'ing!
diff --git a/build.gradle b/build.gradle
index c89eaa5..f490f98 100755
--- a/build.gradle
+++ b/build.gradle
@@ -15,18 +15,19 @@ repositories {
dependencies {
// mandatory dependencies for using Spock
- compile "org.codehaus.groovy:groovy-all:2.5.8"
- testCompile platform("org.spockframework:spock-bom:2.0-M1-groovy-2.5")
+ compile "org.codehaus.groovy:groovy:2.5.13"
+ testCompile platform("org.spockframework:spock-bom:2.0-M3-groovy-2.5")
testCompile "org.spockframework:spock-core"
- testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
+ testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
// optional dependencies for using Spock
- testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
- testRuntime "net.bytebuddy:byte-buddy:1.9.3" // allows mocking of classes (in addition to interfaces)
- testRuntime "org.objenesis:objenesis:2.6" // allows mocking of classes without default constructor (together with CGLIB)
+ testCompile "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
+ testRuntime "net.bytebuddy:byte-buddy:1.10.10" // allows mocking of classes (in addition to interfaces)
+ testRuntime "org.objenesis:objenesis:3.1" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// dependencies used by examples in this project
testRuntime "com.h2database:h2:1.4.197"
+ compile "org.codehaus.groovy:groovy-sql:2.5.13"
}
// the remaining configuration is specific to this project, and is not required for using Spock
diff --git a/pom.xml b/pom.xml
index 8e4aa41..962b494 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,6 +11,7 @@
UTF-8
UTF-8
+ 2.5.13
@@ -60,7 +61,7 @@
org.spockframework
spock-bom
- 2.0-M1-groovy-2.5
+ 2.0-M3-groovy-2.5
pom
import
@@ -83,24 +84,24 @@
org.codehaus.groovy
groovy
- 2.5.8
+ ${groovy.version}
net.bytebuddy
byte-buddy
- 1.9.3
+ 1.10.10
test
-
+
org.objenesis
objenesis
- 2.6
+ 3.1
test
org.hamcrest
hamcrest-core
- 1.3
+ 2.2
test
@@ -109,6 +110,11 @@
h2
1.4.197
+
+ org.codehaus.groovy
+ groovy-sql
+ ${groovy.version}
+
diff --git a/src/test/groovy/DataDrivenSpec.groovy b/src/test/groovy/DataDrivenSpec.groovy
index 3f73724..1fd44e5 100644
--- a/src/test/groovy/DataDrivenSpec.groovy
+++ b/src/test/groovy/DataDrivenSpec.groovy
@@ -16,7 +16,6 @@
import spock.lang.*
-@Unroll
class DataDrivenSpec extends Specification {
def "maximum of two numbers"() {
expect:
@@ -55,4 +54,4 @@ class DataDrivenSpec extends Specification {
name == "Fred" ? "Male" : "Female"
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/groovy/DatabaseDrivenSpec.groovy b/src/test/groovy/DatabaseDrivenSpec.groovy
index 8a99aaf..51f69f8 100644
--- a/src/test/groovy/DatabaseDrivenSpec.groovy
+++ b/src/test/groovy/DatabaseDrivenSpec.groovy
@@ -20,18 +20,18 @@ import spock.lang.Specification
class DatabaseDrivenSpec extends Specification {
@Shared sql = Sql.newInstance("jdbc:h2:mem:", "org.h2.Driver")
-
+
// insert data (usually the database would already contain the data)
def setupSpec() {
sql.execute("create table maxdata (id int primary key, a int, b int, c int)")
- sql.execute("insert into maxdata values (1, 3, 7, 7), (2, 5, 4, 5), (3, 9, 9, 9)")
+ sql.execute("insert into maxdata values (1, 3, 7, 7), (2, 5, 4, 5), (3, 9, 9, 9), (4, 2, -3, 2)")
}
- def "maximum of two numbers"() {
+ def "Maximum of #a and #b is #c"() {
expect:
Math.max(a, b) == c
where:
[a, b, c] << sql.rows("select a, b, c from maxdata")
}
-}
\ No newline at end of file
+}
diff --git a/src/test/groovy/IncludeExcludeExtensionSpec.groovy b/src/test/groovy/IncludeExcludeExtensionSpec.groovy
index 70e3d2a..e8d5e13 100644
--- a/src/test/groovy/IncludeExcludeExtensionSpec.groovy
+++ b/src/test/groovy/IncludeExcludeExtensionSpec.groovy
@@ -49,15 +49,18 @@ import spock.lang.Specification
class IncludeExcludeExtensionSpec extends Specification {
@Fast
def "a fast method"() {
+ println "fast"
expect: true
}
@Slow
def "a slow method"() {
+ println "slow"
expect: true
}
def "a neither fast nor slow method"() {
+ println "neither fast nor slow"
expect: true
}
}