Skip to content

question: any way to imperatively summon a pre-configured arbitrary? #527

Description

@SimY4

Quick question, maybe I'm missing something in the doc.

I can summon arbitraries in PBTs and @provide annotated methods with configuration annotations.

Is there a handy way to summon already pre-configured arbitrary instances in an imperative way? I was hoping this will do the trick: Arbitraries.defaultFor(TypeUsage.of(MyClass.class).withAnnotation(Annotation)) but looks like it doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions