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
2
2
3
3
import grails.test.hibernate.HibernateSpec
4
4
import grails.testing.web.controllers.ControllerUnitTest
5
-
5
+ import org.grails.plugins.web.mime.MimeTypesGrailsPlugin
6
6
7
7
/**
8
8
* Created by graemerocher on 24/10/16.
9
9
*/
10
10
class BookControllerUnitSpec extends HibernateSpec implements ControllerUnitTest<BookController > {
11
11
12
+ def setupSpec () {
13
+ defineBeans(new MimeTypesGrailsPlugin ())
14
+ }
15
+
12
16
def setup () {
13
17
def bookService = Mock (BookService )
14
18
bookService. getBook(_) >> { args ->
Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ dependencies {
36
36
runtime " org.glassfish.web:el-impl:2.1.2-b03"
37
37
runtime " org.apache.tomcat:tomcat-jdbc"
38
38
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 "
41
41
}
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ seleniumSafariDriverVersion=3.14.0
23
23
24
24
# Following are used only for example projects
25
25
grailsVersion =4.0.0
26
- testingSupportVersion =2.1.1
26
+ testingSupportVersion =2.1.2
27
27
fieldsVersion =3.0.0.RC1
28
28
scaffoldingVersion =4.0.0.RC1
You can’t perform that action at this time.
0 commit comments