Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tvinke opened this issue Oct 27, 2015 · 1 comment

Comments

@tvinke
Copy link

tvinke commented Oct 27, 2015

Software

  • Groovy Eclipse compiler (2.9.2.xx-201508121448-e45)
  • Eclipse Mars (4.5.1 20150924-1200)
  • Grails 3.1.0.M2

Steps

  • 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
package test.Sample

import grails.test.mixin.TestFor
import spock.lang.Specification

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Sample)
class Sample extends Specification 
  • 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
@greggvarona
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants