Skip to content

Commit 83ec8c6

Browse files
authored
Merge pull request #15 from rdmueller/patch-3
initialize some test data in order to easily test the demo app
2 parents c530313 + 6087899 commit 83ec8c6

File tree

1 file changed

+3
-0
lines changed
  • springfox-grails-contract-tests/grails-app/init/grails/springfox/sample

1 file changed

+3
-0
lines changed

springfox-grails-contract-tests/grails-app/init/grails/springfox/sample/BootStrap.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package grails.springfox.sample
33
class BootStrap {
44

55
def init = { servletContext ->
6+
['Rock', 'Pop', 'Metal', 'Folk'].each {
7+
new Genre(name: it).save(flush:true)
8+
}
69
}
710
def destroy = {
811
}

0 commit comments

Comments
 (0)