Closed
Description
Description
Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and module). Currently, fuzzing doesn't generate any models in this situation.
To Reproduce
Generate test for a method t
:
class A {
public int f;
}
public class First {
public void t(A a) {
}
}
Expected behavior
There's a generated test without reflection
Actual behavior
Currently, fuzzing creates a test using reflection.