@CompileDynamic abstract class GormToolsHibernateSpec extends HibernateSpec
Can be a drop in replacement for the HibernateSpec. Makes sure repositories are setup for the domains and incorporates the TestDataBuilder from build-test-data plugin methods and adds in JsonViewSpecSetup so that it possible to build json and map test data
Fields inherited from class | Fields |
---|---|
class HibernateSpec |
__$stMC, _ |
class spock.lang.Specification |
_ |
Type Params | Return Type | Name and description |
---|---|---|
|
AbstractDatastore |
getDatastore() consistency with other areas of grails and other unit tests |
|
void |
setupSpec() |
Methods inherited from class | Name |
---|---|
class HibernateSpec |
getSessionFactory, getHibernateDatastore, getTransactionManager, getHibernateSession, setHibernateDatastore, setTransactionManager, get$spock_sharedField_hibernateDatastore, set$spock_sharedField_hibernateDatastore, get$spock_sharedField_transactionManager, set$spock_sharedField_transactionManager, getTransactionStatus, setTransactionStatus, isRollback, getDomainClasses, getConfiguration, invokeMethod, getMetaClass, setMetaClass, setProperty, getProperty, verifyAll, noExceptionThrown, notThrown, with, with, thrown, thrown, old, Mock, Mock, Mock, Mock, Mock, Mock, Mock, Mock, Stub, Stub, Stub, Stub, Stub, Stub, Stub, Stub, Spy, Spy, Spy, Spy, Spy, Spy, Spy, Spy, Spy, GroovyMock, GroovyMock, GroovyMock, GroovyMock, GroovyMock, GroovyMock, GroovyMock, GroovyMock, GroovyStub, GroovyStub, GroovyStub, GroovyStub, GroovyStub, GroovyStub, GroovyStub, GroovyStub, GroovySpy, GroovySpy, GroovySpy, GroovySpy, GroovySpy, GroovySpy, GroovySpy, GroovySpy, interaction, getSpecificationContext, createMock, createMock, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class spock.lang.Specification |
spock.lang.Specification#verifyAll(groovy.lang.Closure), spock.lang.Specification#noExceptionThrown(), spock.lang.Specification#notThrown(java.lang.Class), spock.lang.Specification#with(java.lang.Object, groovy.lang.Closure), spock.lang.Specification#with(java.lang.Object, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#thrown(java.lang.Class), spock.lang.Specification#thrown(), spock.lang.Specification#old(java.lang.Object), spock.lang.Specification#Mock(java.lang.Class), spock.lang.Specification#Mock(java.util.Map, java.lang.Class), spock.lang.Specification#Mock(groovy.lang.Closure), spock.lang.Specification#Mock(java.util.Map, groovy.lang.Closure), spock.lang.Specification#Mock(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Mock(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Mock(), spock.lang.Specification#Mock(java.util.Map), spock.lang.Specification#Stub(java.util.Map, groovy.lang.Closure), spock.lang.Specification#Stub(groovy.lang.Closure), spock.lang.Specification#Stub(java.util.Map, java.lang.Class), spock.lang.Specification#Stub(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Stub(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Stub(), spock.lang.Specification#Stub(java.util.Map), spock.lang.Specification#Stub(java.lang.Class), spock.lang.Specification#Spy(groovy.lang.Closure), spock.lang.Specification#Spy(java.lang.Object), spock.lang.Specification#Spy(java.util.Map, java.lang.Class), spock.lang.Specification#Spy(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Spy(java.util.Map, groovy.lang.Closure), spock.lang.Specification#Spy(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#Spy(), spock.lang.Specification#Spy(java.lang.Class), spock.lang.Specification#Spy(java.util.Map), spock.lang.Specification#GroovyMock(java.util.Map, groovy.lang.Closure), spock.lang.Specification#GroovyMock(groovy.lang.Closure), spock.lang.Specification#GroovyMock(java.util.Map, java.lang.Class), spock.lang.Specification#GroovyMock(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovyMock(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovyMock(), spock.lang.Specification#GroovyMock(java.util.Map), spock.lang.Specification#GroovyMock(java.lang.Class), spock.lang.Specification#GroovyStub(java.util.Map, groovy.lang.Closure), spock.lang.Specification#GroovyStub(groovy.lang.Closure), spock.lang.Specification#GroovyStub(java.util.Map, java.lang.Class), spock.lang.Specification#GroovyStub(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovyStub(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovyStub(), spock.lang.Specification#GroovyStub(java.util.Map), spock.lang.Specification#GroovyStub(java.lang.Class), spock.lang.Specification#GroovySpy(java.lang.Class), spock.lang.Specification#GroovySpy(java.util.Map, java.lang.Class), spock.lang.Specification#GroovySpy(groovy.lang.Closure), spock.lang.Specification#GroovySpy(java.util.Map, groovy.lang.Closure), spock.lang.Specification#GroovySpy(java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovySpy(java.util.Map, java.lang.Class, groovy.lang.Closure), spock.lang.Specification#GroovySpy(), spock.lang.Specification#GroovySpy(java.util.Map), spock.lang.Specification#interaction(groovy.lang.Closure), spock.lang.Specification#getSpecificationContext(), spock.lang.Specification#createMock(java.lang.String, java.lang.Object, java.lang.reflect.Type, org.spockframework.mock.MockNature, org.spockframework.mock.MockImplementation, java.util.Map, groovy.lang.Closure), spock.lang.Specification#createMock(java.lang.String, java.lang.reflect.Type, org.spockframework.mock.MockNature, org.spockframework.mock.MockImplementation, java.util.Map, groovy.lang.Closure), spock.lang.Specification#wait(long, int), spock.lang.Specification#wait(long), spock.lang.Specification#wait(), spock.lang.Specification#equals(java.lang.Object), spock.lang.Specification#toString(), spock.lang.Specification#hashCode(), spock.lang.Specification#getClass(), spock.lang.Specification#notify(), spock.lang.Specification#notifyAll() |
consistency with other areas of grails and other unit tests