Grails UrlMappingsTests-无法在测试类型';集成';?

Grails UrlMappingsTests-无法在测试类型';集成';?,grails,groovy,junit,url-mapping,Grails,Groovy,Junit,Url Mapping,我正在尝试为我的grails项目创建一个UrlMappingsTest,我得到以下异常: java.lang.RuntimeException: Could not load class in test type 'integration' at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)

我正在尝试为我的grails项目创建一个UrlMappingsTest,我得到以下异常:

java.lang.RuntimeException: Could not load class in test type 'integration'
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
我的课程很简单,我试着按照这个例子。发生什么事了

import grails.test.GrailsUrlMappingsTestCase

class UrlMappingTests extends GrailsUrlMappingsTestCase {
//  static mappings = UrlMappings

  void testForwardingUrls(){
    assertForwardUrlMapping( "/rest/users/stefan/files", controller: "file", action: "allFiles" );
  }
}
在未注释静态行的情况下,我得到

  [groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
  [groovyc] You misspelled a classname or statically imported field. Please check the spelling.
  [groovyc] You attempted to use a method 'UrlMappings' but left out brackets in a place not allowed by the grammar.
  [groovyc]  @ line 7, column 21.
  [groovyc]      static mappings = UrlMappings
  [groovyc]       

             ^

如果查看for
GrailsUrlMappingsTestCase
,您会发现(正如您可能怀疑的那样)
static mappings=UrlMappings
是不需要的,因为如果您不指定静态映射变量,默认情况下它会这样做。您是否在
java.lang.RuntimeException:无法加载测试类型“integration”中的类时,在注释掉该行后,在
java.lang.RuntimeException下得到嵌套异常?发布完整的stacktrace,它应该可以工作。您使用的是哪一版本的grails?

我已经在上记录了一张用于此的票证。

我在运行时没有找到一个类。我用的是1.3.7Hm,好的,我在1.3.6上测试我的,它正在工作。当你把stacktrace注释掉后,你能发布完整的stacktrace吗?我开始了一个新项目,但在1.3.7中失败了。我怀疑这是一种倒退。