apache / apache/grails-intellij-plugin

Grails @TestFor annotation on UrlMappings issue

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

When writing a test for UrlMappings, IntelliJ doesn't recognize that the `@TestFor(UrlMappings)` is for the `UrlMappings` in the default package, which exists in at `grails-app/conf/UrlMappings.groovy`. The IDE flags this as an error and tries to import `org.codehaus.groovy.grails.web.mappings.UrlMappings`, when it should instead find the `UrlMappings` existing in the `grails-app/conf` directory.

---

*Imported from [IDEA-115096](https://youtrack.jetbrains.com/issue/IDEA-115096) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with a test using @TestFor(UrlMappings) and the UrlMappings file at grails-app/conf/UrlMappings.groovy. Trace the IntelliJ/Grails resolution and import logic for this annotation, then verify that the default-package UrlMappings is recognized without suggesting org.codehaus.groovy.grails.web.mappings.UrlMappings.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.