Z
Z
zencd2012-11-04 13:06:14
Grails
zencd, 2012-11-04 13:06:14

IDEA finds the controller class, junit launched from IDEA - no longer?

There is a unit-test for the Grayles controller XXXController. IDEA does not highlight any errors, all connections are in place (of course). However, when running the XXXControllerTest unit test from an idea (ctrl+shift+f10), an error is thrown:

junit.framework.AssertionFailedError: Exception in constructor: testXXX (java.lang.ClassNotFoundException: XXXController
  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  ...

Is it curable?
idea 11.1.4 community
spring 3.1.2
groovy 2.0.5
grails 2.1.1
windows 7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivnik, 2012-11-07
@ivnik

In the test configuration, look at what is indicated in "Use classpath of module".

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question