Home
last modified time | relevance | path

Searched refs:FrameworkMethod (Results 1 – 25 of 46) sorted by relevance

12

/external/junit/src/main/java/org/junit/runners/
DBlockJUnit4ClassRunner.java28 import org.junit.runners.model.FrameworkMethod;
57 public class BlockJUnit4ClassRunner extends ParentRunner<FrameworkMethod> {
58 …private final ConcurrentHashMap<FrameworkMethod, Description> methodDescriptions = new ConcurrentH…
73 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild()
87 protected boolean isIgnored(FrameworkMethod child) { in isIgnored()
92 protected Description describeChild(FrameworkMethod method) { in describeChild()
105 protected List<FrameworkMethod> getChildren() { in getChildren()
118 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
224 protected String testName(FrameworkMethod method) { in testName()
260 protected Statement methodBlock(FrameworkMethod method) { in methodBlock()
[all …]
DParameterized.java15 import org.junit.runners.model.FrameworkMethod;
290 private FrameworkMethod getParametersMethod() throws Exception { in getParametersMethod()
291 List<FrameworkMethod> methods = getTestClass().getAnnotatedMethods( in getParametersMethod()
293 for (FrameworkMethod each : methods) { in getParametersMethod()
/external/junit/src/main/java/org/junit/experimental/theories/internal/
DSpecificDataPointsSupplier.java13 import org.junit.runners.model.FrameworkMethod;
57 protected Collection<FrameworkMethod> getSingleDataPointMethods(ParameterSignature sig) { in getSingleDataPointMethods()
58 Collection<FrameworkMethod> methods = super.getSingleDataPointMethods(sig); in getSingleDataPointMethods()
61 List<FrameworkMethod> methodsWithMatchingNames = new ArrayList<FrameworkMethod>(); in getSingleDataPointMethods()
63 for (FrameworkMethod method : methods) { in getSingleDataPointMethods()
74 protected Collection<FrameworkMethod> getDataPointsMethods(ParameterSignature sig) { in getDataPointsMethods()
75 Collection<FrameworkMethod> methods = super.getDataPointsMethods(sig); in getDataPointsMethods()
78 List<FrameworkMethod> methodsWithMatchingNames = new ArrayList<FrameworkMethod>(); in getDataPointsMethods()
80 for (FrameworkMethod method : methods) { in getDataPointsMethods()
DAllMembersSupplier.java17 import org.junit.runners.model.FrameworkMethod;
25 private final FrameworkMethod method;
27 private MethodParameterValue(FrameworkMethod dataPointMethod) { in MethodParameterValue()
77 for (FrameworkMethod dataPointsMethod : getDataPointsMethods(sig)) { in addMultiPointMethods()
98 for (FrameworkMethod dataPointMethod : getSingleDataPointMethods(sig)) { in addSinglePointMethods()
174 protected Collection<FrameworkMethod> getDataPointsMethods(ParameterSignature sig) { in getDataPointsMethods()
200 protected Collection<FrameworkMethod> getSingleDataPointMethods(ParameterSignature sig) { in getSingleDataPointMethods()
/external/mockito/src/test/java/org/mockitoutil/
DSafeJUnitRuleTest.java6 import org.junit.runners.model.FrameworkMethod;
23 }, mock(FrameworkMethod.class), this).evaluate(); in happy_path_no_exception()
36 }, mock(FrameworkMethod.class), this).evaluate(); in regular_failing_test()
48 }, mock(FrameworkMethod.class), this).evaluate(); in rule_threw_exception()
61 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_but_no_exception()
80 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_message_did_not_match()
97 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_type_did_not_match()
118 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_assert_did_not_match()
127 public Statement apply(final Statement base, FrameworkMethod method, Object target) { in apply()
/external/junit/src/main/java/org/junit/rules/
DTestWatchman.java4 import org.junit.runners.model.FrameworkMethod;
46 public Statement apply(final Statement base, final FrameworkMethod method, in apply()
70 public void succeeded(FrameworkMethod method) {
76 public void failed(Throwable e, FrameworkMethod method) {
82 public void starting(FrameworkMethod method) {
89 public void finished(FrameworkMethod method) {
DMethodRule.java4 import org.junit.runners.model.FrameworkMethod;
43 Statement apply(Statement base, FrameworkMethod method, Object target); in apply()
/external/junit/src/main/java/org/junit/experimental/theories/
DTheories.java16 import org.junit.runners.model.FrameworkMethod;
122 for (FrameworkMethod each : computeTestMethods()) { in validateTestMethods()
155 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
156 … List<FrameworkMethod> testMethods = new ArrayList<FrameworkMethod>(super.computeTestMethods()); in computeTestMethods()
157 List<FrameworkMethod> theoryMethods = getTestClass().getAnnotatedMethods(Theory.class); in computeTestMethods()
164 public Statement methodBlock(final FrameworkMethod method) { in methodBlock()
171 private final FrameworkMethod testMethod;
176 public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass) { in TheoryAnchor()
226 public Statement methodBlock(FrameworkMethod method) { in runWithCompleteAssignment()
246 protected Statement methodInvoker(FrameworkMethod method, Object test) { in runWithCompleteAssignment()
[all …]
/external/vogar/src/vogar/target/junit/
DVogarBlockJUnit4ClassRunner.java28 import org.junit.runners.model.FrameworkMethod;
63 protected List<FrameworkMethod> getChildren() { in getChildren()
67 List<FrameworkMethod> methods = super.getChildren(); in getChildren()
75 Map<String, FrameworkMethod> map = new HashMap<>(); in getChildren()
76 for (FrameworkMethod method : methods) { in getChildren()
82 FrameworkMethod method = map.get(name); in getChildren()
104 private static class MissingFrameworkMethod extends FrameworkMethod {
DValidateTestMethodWhenRunBlockJUnit4ClassRunner.java22 import org.junit.runners.model.FrameworkMethod;
48 protected Statement methodInvoker(final FrameworkMethod frameworkMethod, Object test) { in methodInvoker()
61 private final FrameworkMethod frameworkMethod;
64 public ValidateMethodStatement(FrameworkMethod frameworkMethod, Statement methodInvoker) { in ValidateMethodStatement()
DApplyGlobalRulesBlockJUnit4ClassRunner.java24 import org.junit.runners.model.FrameworkMethod;
42 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild()
54 protected Statement methodBlock(FrameworkMethod method) { in methodBlock()
/external/junit-params/src/main/java/junitparams/internal/
DTestMethod.java12 import org.junit.runners.model.FrameworkMethod;
26 private FrameworkMethod frameworkMethod;
34 public TestMethod(FrameworkMethod method, TestClass testClass) { in TestMethod()
47 public static List<FrameworkMethod> listFrom(TestClass testClass) { in listFrom()
48 List<FrameworkMethod> methods = new ArrayList<FrameworkMethod>(); in listFrom()
50 for (FrameworkMethod frameworkMethod : testClass.getAnnotatedMethods(Test.class)) { in listFrom()
156 private void verifyMethodCanBeRunByStandardRunner(FrameworkMethod method) { in verifyMethodCanBeRunByStandardRunner()
176 public FrameworkMethod frameworkMethod() { in frameworkMethod()
DInvokeNonParameterisedMethod.java3 import org.junit.runners.model.FrameworkMethod;
11 private final FrameworkMethod testMethod;
14 InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass) { in InvokeNonParameterisedMethod()
DDescribableFrameworkMethod.java7 import org.junit.runners.model.FrameworkMethod;
12 public abstract class DescribableFrameworkMethod extends FrameworkMethod implements Describable {
/external/junit/src/main/java/org/junit/runners/model/
DTestClass.java36 private final Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations;
52 Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations = in TestClass()
53 new LinkedHashMap<Class<? extends Annotation>, List<FrameworkMethod>>(); in TestClass()
63 …protected void scanAnnotatedMembers(Map<Class<? extends Annotation>, List<FrameworkMethod>> method… in scanAnnotatedMembers()
66 addToAnnotationLists(new FrameworkMethod(eachMethod), methodsForAnnotations); in scanAnnotatedMembers()
114 public List<FrameworkMethod> getAnnotatedMethods() { in getAnnotatedMethods()
115 List<FrameworkMethod> methods = collectValues(methodsForAnnotations); in getAnnotatedMethods()
124 public List<FrameworkMethod> getAnnotatedMethods( in getAnnotatedMethods()
245 for (FrameworkMethod each : getAnnotatedMethods(annotationClass)) { in getAnnotatedMethodValues()
308 Comparator<FrameworkMethod> {
[all …]
DFrameworkMethod.java19 public class FrameworkMethod extends FrameworkMember<FrameworkMethod> { class
25 public FrameworkMethod(Method method) { in FrameworkMethod() method in FrameworkMethod
136 public boolean isShadowedBy(FrameworkMethod other) {
153 if (!FrameworkMethod.class.isInstance(obj)) {
156 return ((FrameworkMethod) obj).method.equals(method);
/external/junit-params/src/main/java/junitparams/
DJUnitParamsRunner.java9 import org.junit.runners.model.FrameworkMethod;
409 protected void runChild(FrameworkMethod method, RunNotifier notifier) { in runChild()
441 private DescribableFrameworkMethod getDescribableMethod(FrameworkMethod method) { in getDescribableMethod()
463 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
468 protected Statement methodInvoker(FrameworkMethod method, Object test) { in methodInvoker()
478 protected Description describeChild(FrameworkMethod method) { in describeChild()
/external/junit/src/main/java/org/junit/internal/runners/statements/
DRunBefores.java5 import org.junit.runners.model.FrameworkMethod;
13 private final List<FrameworkMethod> befores;
15 public RunBefores(Statement next, List<FrameworkMethod> befores, Object target) { in RunBefores()
23 for (FrameworkMethod before : befores) { in evaluate()
DRunAfters.java6 import org.junit.runners.model.FrameworkMethod;
15 private final List<FrameworkMethod> afters;
17 public RunAfters(Statement next, List<FrameworkMethod> afters, Object target) { in RunAfters()
31 for (FrameworkMethod each : afters) { in evaluate()
DInvokeMethod.java3 import org.junit.runners.model.FrameworkMethod;
7 private final FrameworkMethod testMethod;
10 public InvokeMethod(FrameworkMethod testMethod, Object target) { in InvokeMethod()
/external/junit-params/src/main/java/junitparams/internal/parameters/
DParametersReader.java5 import org.junit.runners.model.FrameworkMethod;
21 private final FrameworkMethod frameworkMethod;
24 public ParametersReader(Class<?> testClass, FrameworkMethod frameworkMethod) { in ParametersReader()
DParametersFromValue.java4 import org.junit.runners.model.FrameworkMethod;
10 ParametersFromValue(FrameworkMethod frameworkMethod) { in ParametersFromValue()
DParametersFromExternalClassMethod.java4 import org.junit.runners.model.FrameworkMethod;
10 ParametersFromExternalClassMethod(FrameworkMethod frameworkMethod) { in ParametersFromExternalClassMethod()
/external/junit-params/src/main/java/junitparams/internal/annotation/
DFrameworkMethodAnnotations.java5 import org.junit.runners.model.FrameworkMethod;
12 private final FrameworkMethod frameworkMethod;
14 public FrameworkMethodAnnotations(FrameworkMethod frameworkMethod) { in FrameworkMethodAnnotations()
/external/junit/src/main/java/org/junit/validator/
DAnnotationsValidator.java12 import org.junit.runners.model.FrameworkMethod;
93 AnnotatableValidator<FrameworkMethod> {
95 Iterable<FrameworkMethod> getAnnotatablesForTestClass( in getAnnotatablesForTestClass()
102 AnnotationValidator validator, FrameworkMethod method) { in validateAnnotatable()

12