Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit fd95063

Browse files
committed
Update to latest testing support
1 parent 525d220 commit fd95063

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

examples/grails3-hibernate5/src/test/groovy/functional/tests/BookControllerUnitSpec.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ package functional.tests
22

33
import grails.test.hibernate.HibernateSpec
44
import grails.testing.web.controllers.ControllerUnitTest
5-
5+
import org.grails.plugins.web.mime.MimeTypesGrailsPlugin
66

77
/**
88
* Created by graemerocher on 24/10/16.
99
*/
1010
class BookControllerUnitSpec extends HibernateSpec implements ControllerUnitTest<BookController> {
1111

12+
def setupSpec() {
13+
defineBeans(new MimeTypesGrailsPlugin())
14+
}
15+
1216
def setup() {
1317
def bookService = Mock(BookService)
1418
bookService.getBook(_) >> { args ->

examples/test-data-service/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ dependencies {
3636
runtime "org.glassfish.web:el-impl:2.1.2-b03"
3737
runtime "org.apache.tomcat:tomcat-jdbc"
3838
runtime "javax.xml.bind:jaxb-api:2.3.1"
39-
testCompile "org.grails:grails-gorm-testing-support"
40-
testCompile "org.grails:grails-web-testing-support"
39+
testCompile "org.grails:grails-gorm-testing-support:$testingSupportVersion"
40+
testCompile "org.grails:grails-web-testing-support:$testingSupportVersion"
4141
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ seleniumSafariDriverVersion=3.14.0
2323

2424
# Following are used only for example projects
2525
grailsVersion=4.0.0
26-
testingSupportVersion=2.1.1
26+
testingSupportVersion=2.1.2
2727
fieldsVersion=3.0.0.RC1
2828
scaffoldingVersion=4.0.0.RC1

0 commit comments

Comments
 (0)