Closed
Description
Description
Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45
The error message is the following: "C:\Users<username>.jdks\corretto-11.0.16.1\lib\src.zip!\java.base\java\lang\Math.java (??????? ?? ??????? ????? ????????? ????)"
Need to say that the Math.java file is exist as a Zip entry in the archive with sources mentioned above
To Reproduce
- Run runIde Gradle task
- Copy to the open project the mentioned below snippet of code
- Use plugin to generate tests for DoubleFunctions::hypo method
public class DoubleFunctions {
public double hypo(double a, double b) {
return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
}
@SuppressWarnings("ManualMinMaxCalculation")
public double max(double a, double b) {
return a > b ? a : b;
}
public double circleSquare(double r) {
if (r < 0 || Double.isNaN(r) || r > 10000) {
throw new IllegalArgumentException();
}
double square = Math.PI * r * r;
if (square > 777.85) {
return square;
} else {
return 0;
}
}
public int numberOfRootsInSquareFunction(double a, double b, double c) {
double result = b * b - 4 * a * c;
if (result > 0) {
return 2;
} else if (result == 0) {
return 1;
}
return 0;
}
}
Expected behavior
Tests with summaries should be generated.
Actual behavior
Tests are generated without summaries.
Visual proofs (screenshots, logs, images)
Environment
The Coretto jdk 11.0.16.1 is installed and used in both, initial and debug IDEs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done