Skip to content

ParameterSignature class does not have getSupplierAnnotation() method #1208

Open
@shubozhang

Description

@shubozhang

I was running @theory examples and found the following code cannot pass compilation.

public static class BetweenSupplier extends ParameterSupplier {
         @Override
         public List<PotentialAssignment> getValueSources(ParameterSignature sig) {
             List<PotentialAssignment> list = new ArrayList<PotentialAssignment>();
             Between annotation = (Between) sig.getSupplierAnnotation(); // cannot resolve method

             for (int i = annotation.first(); i <= annotation.last(); i++)
                 list.add(PotentialAssignment.forValue("ints", i));
             return list;
         }
}

Doc: http://junit.org/apidocs/org/junit/experimental/theories/ParameterSupplier.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions