hablutzel1 / GenerateTestCases

Behaviour Driven Development plugin for IntelliJ IDEA
18 stars 11 forks source link

Do not allow to create test methods for inner classes #28

Open hablutzel1 opened 12 years ago

hablutzel1 commented 12 years ago

If you write something like

public class A {

    /**
     * @should foo foo
     * @should fasdf
     */
    void foo() {

    }

    static class B {

        /**
         * @should sadf
         * @should asdf
         */
        void yoo() {

        }
    }

}

and then place the caret in the inner class, and press the button in the toolbar to generate the test methods then there appear the @should tags eligible for test methods but in the time of creation it fails

tommaxwellmans commented 9 years ago

How hard would it be to get this work? Is this a feature on planning on adding?

hablutzel1 commented 9 years ago

@tommaxwellmans it shouldn't be too hard, but I'm not currently working on this project because of other activities. Anyway, I invite you to fork the project and fix this bug and then create a pull request if you want.

tommaxwellmans commented 9 years ago

Ok I'll give it a go.