![JAR search and dependency download from the Maven repository](/logo.png)
org.junit.experimental.theories.suppliers.TestedOnSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-tck Show documentation
Show all versions of truffle-tck Show documentation
A collection of tests that can certify language implementation to be compliant
with most recent requirements of the Truffle infrastructure and tooling.
The newest version!
package org.junit.experimental.theories.suppliers;
import java.util.ArrayList;
import java.util.List;
import org.junit.experimental.theories.ParameterSignature;
import org.junit.experimental.theories.ParameterSupplier;
import org.junit.experimental.theories.PotentialAssignment;
public class TestedOnSupplier extends ParameterSupplier {
@Override
public List getValueSources(ParameterSignature sig) {
List list = new ArrayList();
TestedOn testedOn = sig.getAnnotation(TestedOn.class);
int[] ints = testedOn.ints();
for (final int i : ints) {
list.add(PotentialAssignment.forValue("ints", i));
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy