-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a buglang-javaIssue is related to Java supportIssue is related to Java supportspec-regressionRegressionRegression
Description
To Reproduce
- Consider the following source code:
public class ClassWithStaticAndInnerClasses {
public int z = 0;
public static class PublicStaticClassWithPrivateField {
public static class DeepNestedStatic {
public int g(int x) {
return x + 1;
}
}
public class DeepNested {
public int h(int x) {
return x + 2;
}
}
}
}
- Locate the cursor inside
h
method. - Generate tests without mocks.
Expected behavior
Generated code is compilable, test class name is correct
Actual behavior
Current test class name leads to compilation errors.
Visual proofs (screenshots, logs, images)
tyuldashev
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a buglang-javaIssue is related to Java supportIssue is related to Java supportspec-regressionRegressionRegression
Type
Projects
Status
Todo