Skip to content

Fuzzing doesn't generate test for package-private parameters #449

Closed
@Markoutte

Description

@Markoutte

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.

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions