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
Grails 3.1.0.M2 and Eclipse Mars: Groovy:Could not find class for Transformation Processor org.grails.compiler.injection.test.TestForTransformation declared by grails.test.mixin.TestFor
#146
Generated a unit test in on the command-line in my project with create-domain-class Sample
This also generates a SampleSpec which looks like
packagetest.Sampleimportgrails.test.mixin.TestForimportspock.lang.Specification/** * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions*/@TestFor(Sample)
classSampleextendsSpecification
Refreshed the project in Eclipse. Now there's a red cross before the "package ..." line with an errror: Groovy:Could not find class for Transformation Processor org.grails.compiler.injection.test.TestForTransformation declared by grails.test.mixin.TestFor
The text was updated successfully, but these errors were encountered:
I had the same error before and every time I try to execute a specification/test, I get a java.lang.VerifyError. In case you haven't found the solution yet, I fixed my problem by upgrading my JDK. Try upgrading to the latest JDK, and if that still doesn't work there might really be a problem with the groovy/grails classes.
Software
Steps
create-domain-class Sample
SampleSpec
which looks likeGroovy:Could not find class for Transformation Processor org.grails.compiler.injection.test.TestForTransformation declared by grails.test.mixin.TestFor
The text was updated successfully, but these errors were encountered: