Sunday 24 February 2013

Grails Troubleshooting error "Only classes and closures can be used for attribute 'value' in @grails.test.mixin.TestFor"

When Unit Testing URL Mappings I get the error Only classes and closures can be used for attribute 'value' in @grails.test.mixin.TestFor. The URL Mapping unit test should be in the default package as stated in the Grails documentation because the URL mapping files named *UrlMappings.groovy are in the default package.

2 comments:

  1. Hi,
    I have this as well in Grails 2.3.7
    The tests are generated by Grails itself. Did you solve this?

    ReplyDelete
    Replies
    1. I abandoned Grails since I had many problems with it. Using plain Spring now.

      Delete