You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trying to write a ServiceUnitTest and mock a data service that the service under test is using, i get a NoSuchMethodError:
java.lang.NoSuchMethodError: org.grails.datastore.mapping.core.AbstractDatastore.getService(Ljava/lang/Class;)Lorg/grails/datastore/mapping/services/Service;
at grails.testing.gorm.DataTest$Trait$Helper.mockDataService(DataTest.groovy:96)
at myapp.DummyServiceSpec.setupSpec(DummyServiceSpec.groovy:11)
but looking at the code (i.e. the AbstractDatastore.getService method signature), i cannot figure out whats wrong.
sample app will be referenced in a minute.
The text was updated successfully, but these errors were encountered:
zyro23
added a commit
to zyro23/grails-testing-support-38
that referenced
this issue
Jul 31, 2018
trying to write a
ServiceUnitTest
and mock a data service that the service under test is using, i get aNoSuchMethodError
:but looking at the code (i.e. the
AbstractDatastore.getService
method signature), i cannot figure out whats wrong.sample app will be referenced in a minute.
The text was updated successfully, but these errors were encountered: