We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Take a look at the BootStrap what objects are created in the DB before the the integration tests are started
Example for an integration test with Spock:
class GuttenbergServiceIntegrationSpec extends IntegrationSpec { def guttenbergService def "Create thesis for first author in DB"() { when: def thesis = guttenbergService.createThesis(authorId) then: thesis != null Book.countByAuthor(author) == 2 where: authorId = 1L author = Author.get(authorId) } }
Find more examples here: