Description
The name of the test class generated in Contest Estimator for nested class does not match with the corresponding filename which leads to a compilation error (see an attached error).
To Reproduce
Steps to reproduce the behavior:
- Run ContestEstimator for any nested class (for example,
org.antlr.v4.codegen.target.JavaScriptTarget$JavaStringRenderer)
Expected behavior
Correct tests are generated, test class would be compiled.
Actual behavior
The generated test file could not be compiled because of a wrong class name.
Visual proofs (screenshots, logs, images)
Compilation errors: C:\work\UTBotJava\utbot-junit-contest\build\output\test_candidates\antlr\org\antlr\v4\codegen\target\JavaScriptTarget_JavaStringRendererTest.java:11: error: class JavaStringRendererTest is public, should be declared in a file named JavaStringRendererTest.java
public final class JavaStringRendererTest {
^
1 error
Environment
Contest Estimator, 60s+ second for generation preferred.
Additional context
No additional context.
Description
The name of the test class generated in Contest Estimator for nested class does not match with the corresponding filename which leads to a compilation error (see an attached error).
To Reproduce
Steps to reproduce the behavior:
org.antlr.v4.codegen.target.JavaScriptTarget$JavaStringRenderer)Expected behavior
Correct tests are generated, test class would be compiled.
Actual behavior
The generated test file could not be compiled because of a wrong class name.
Visual proofs (screenshots, logs, images)
Environment
Contest Estimator, 60s+ second for generation preferred.
Additional context
No additional context.