GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-638

Creating JUnit4 test cases needs to be made more groovy

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0Release
    • Fix Version/s: None
    • Environment:
      Groovy-Eclipse Feature 2.0.1.20100129-0800-e35
    • Number of attachments :
      0

      Description

      Choosing the jUnit4 flavor of unit tests produces methods like:

      public void setUp() throws Exception {
      }

      These should be groovied into
      void setUp() {
      }

        Activity

        Hide
        Kris De Volder added a comment -

        Thanks Andrew, for pointing me to this and GRE-639 as something to look at.

        I thought to also put the useful pointers you gave in here, for easy reference / record keeping.

        Andrew's email:
        >
        > GRECLIPSE-638
        > GRECLIPSE-639
        >
        > Both deal with the new groovy test case wizard. The solution for both of
        > them will either be to override methods from the superclass and use
        > reflection to access private fields/methods. Or, if it gets too ugly, you
        > can rewrite the new test wizard by copying code from its superclass and
        > making all the changes you need.

        Show
        Kris De Volder added a comment - Thanks Andrew, for pointing me to this and GRE-639 as something to look at. I thought to also put the useful pointers you gave in here, for easy reference / record keeping. Andrew's email: > > GRECLIPSE-638 > GRECLIPSE-639 > > Both deal with the new groovy test case wizard. The solution for both of > them will either be to override methods from the superclass and use > reflection to access private fields/methods. Or, if it gets too ugly, you > can rewrite the new test wizard by copying code from its superclass and > making all the changes you need.
        Hide
        Andrew Eisenberg added a comment -

        Something for Nieraj?

        Show
        Andrew Eisenberg added a comment - Something for Nieraj?

          People

          • Assignee:
            Unassigned
            Reporter:
            Albatross
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: