This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
grails3-hibernate5/src/test/groovy/functional/tests Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,17 @@ package functional.tests
22
33import grails.test.hibernate.HibernateSpec
44import 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 */
1010class 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 ->
Original file line number Diff line number Diff 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: $t estingSupportVersion "
40+ testCompile " org.grails:grails-web-testing-support: $t estingSupportVersion "
4141}
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ seleniumSafariDriverVersion=3.14.0
2323
2424# Following are used only for example projects
2525grailsVersion =4.0.0
26- testingSupportVersion =2.1.1
26+ testingSupportVersion =2.1.2
2727fieldsVersion =3.0.0.RC1
2828scaffoldingVersion =4.0.0.RC1
You can’t perform that action at this time.
0 commit comments