Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2332

In unit tests, grails controller flash, params, etc references are underlined

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 2.8.1.RELEASE
    • Fix Version/s: 2.9.0.M2
    • Component/s: GRAILS
    • Labels:

      Description

      In this controller:

      @TestFor(FarController)
      @Mock(Far)
      class FarControllerTests {
        void testFoo() {
          controller.params
          controller.actionName
          controller.request
          // etc
        }
      }
      

      All the identifiers after controller are underlined. This is because these references are only valid inside of the actual controller class. I have a fix for this, but I am not sure this in itself warrants a respin of 2.9.0.M1. I will commit this fix and if there is a respin, this fix will be picked up.

        Activity

        Hide
        Andrew Eisenberg (c) added a comment -

        fixed now with 2.9.0.M2.

        Show
        Andrew Eisenberg (c) added a comment - fixed now with 2.9.0.M2.

          People

          • Assignee:
            Andrew Eisenberg (c)
            Reporter:
            Andrew Eisenberg (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: