JetBrains-Research / TestSpark

TestSpark - a plugin for generating unit tests. TestSpark natively integrates different AI-based test generation tools and techniques in the IDE. Started by SERG TU Delft. Currently under implementation by JetBrains Research (Software Testing Research) for research purposes.
MIT License
47 stars 13 forks source link

[Java] Inner class parsing #256

Open Frosendroska opened 3 months ago

Frosendroska commented 3 months ago

Description

Currently, there is no support of Inner classes.

class MyOuterClass {
    private String name;
    private int age;

    static class MyInnerClass{
        private int sex;

        public int getAge() {
            return sex;
        }
    }
}
  1. If the cursor is in the empty line inside the inner class, then the testing option is only to test OuterClass.
  2. If the cursor is in the non-empty line inside the inner class, then the testing option is the right function, but the class is the OuterClass, not Inner.