Skip to content

Commit

Permalink
Update to latest testing support
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Jul 13, 2020
1 parent 525d220 commit fd95063
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ package functional.tests

import grails.test.hibernate.HibernateSpec
import grails.testing.web.controllers.ControllerUnitTest

import org.grails.plugins.web.mime.MimeTypesGrailsPlugin

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

def setupSpec() {
defineBeans(new MimeTypesGrailsPlugin())
}

def setup() {
def bookService = Mock(BookService)
bookService.getBook(_) >> { args ->
Expand Down
4 changes: 2 additions & 2 deletions examples/test-data-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ dependencies {
runtime "org.glassfish.web:el-impl:2.1.2-b03"
runtime "org.apache.tomcat:tomcat-jdbc"
runtime "javax.xml.bind:jaxb-api:2.3.1"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
testCompile "org.grails:grails-gorm-testing-support:$testingSupportVersion"
testCompile "org.grails:grails-web-testing-support:$testingSupportVersion"
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ seleniumSafariDriverVersion=3.14.0

# Following are used only for example projects
grailsVersion=4.0.0
testingSupportVersion=2.1.1
testingSupportVersion=2.1.2
fieldsVersion=3.0.0.RC1
scaffoldingVersion=4.0.0.RC1

0 comments on commit fd95063

Please sign in to comment.