-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concrete execution fails for a static method using a static field #711
Labels
Milestone
Comments
Currently in main (build 411) public class CheckStaticTest {
}
|
Reproducing with RC-build: build 417 |
36 tasks
When our fuzzer meets methods without any parameters, it tries to generate this instance and call static method from this instance as a usual method. @Markoutte, can you fix it? |
Markoutte
added a commit
that referenced
this issue
Oct 12, 2022
7 tasks
Markoutte
added a commit
that referenced
this issue
Oct 12, 2022
Repository owner
moved this from Todo
to Done
in UTBot Java
Oct 12, 2022
AbdullinAM
pushed a commit
to AbdullinAM/UTBotJava
that referenced
this issue
Oct 17, 2022
AbdullinAM
pushed a commit
to AbdullinAM/UTBotJava
that referenced
this issue
Oct 17, 2022
68 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Static method without input parameters is using a static field inside.
Concrete execution fails with "java.lang.IllegalArgumentException: wrong number of arguments"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Tests are supposed to be generated without errors.
Actual behavior
An error test is generated with information about an error in the concrete executor.
Visual proofs (screenshots, logs, images)
Error report:
Child process error:
Environment
Windows 10 Pro
Gradle 6.8
JDK 8
Additional context
The example was taken from utbot-sample/src/main/java/org/utbot/examples/mock/CommonMocksExample.java - just added "static" to the clinitMockExample() definition.
The text was updated successfully, but these errors were encountered: