Reading the documentation on Grails Unit testing I came across the following:
In Grails you need to be particularly aware of the difference between unit and integration tests because in unit test Grails does not inject any of the dynamic methods present during integration tests at runtime.
^ Grails 9.1 Unit Testing Documenation
And with this I'm assuming the missing injected methods refer to:
- the
getBy*
,.save()
methods from GORM and Hibernate
Is there anything else that is dynamically injected that they are talking about here?