Home
last modified time | relevance | path

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

123

/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/junit/src/main/java/org/junit/runners/
DBlockJUnit4ClassRunner.java30 import org.junit.runners.model.FrameworkMethod;
63 public class BlockJUnit4ClassRunner extends ParentRunner<FrameworkMethod> {
66 …private final ConcurrentMap<FrameworkMethod, Description> methodDescriptions = new ConcurrentHashM…
92 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild()
112 protected boolean isIgnored(FrameworkMethod child) { in isIgnored()
117 protected Description describeChild(FrameworkMethod method) { in describeChild()
130 protected List<FrameworkMethod> getChildren() { in getChildren()
143 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
259 protected Object createTest(FrameworkMethod method) throws Exception { in createTest()
267 protected String testName(FrameworkMethod method) { in testName()
[all …]
DParameterized.java22 import org.junit.runners.model.FrameworkMethod;
324 List<FrameworkMethod> methods = getTestClass().getAnnotatedMethods(annotation); in validatePublicStaticVoidMethods()
325 for (FrameworkMethod fm : methods) { in validatePublicStaticVoidMethods()
364 private final FrameworkMethod parametersMethod;
423 TestClass testClass, FrameworkMethod parametersMethod) throws Throwable { in allParameters()
442 private static FrameworkMethod getParametersMethod(TestClass testClass) throws Exception { in getParametersMethod()
443 List<FrameworkMethod> methods = testClass in getParametersMethod()
445 for (FrameworkMethod each : methods) { in getParametersMethod()
485 TestClass testClass, FrameworkMethod parametersMethod) throws Exception { in parametersMethodReturnedWrongType()
/external/mockito/src/test/java/org/mockitoutil/
DSafeJUnitRuleTest.java10 import org.junit.runners.model.FrameworkMethod;
27 }, mock(FrameworkMethod.class), this).evaluate(); in happy_path_no_exception()
40 }, mock(FrameworkMethod.class), this).evaluate(); in regular_failing_test()
52 }, mock(FrameworkMethod.class), this).evaluate(); in rule_threw_exception()
65 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_but_no_exception()
84 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_message_did_not_match()
101 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_type_did_not_match()
122 }, mock(FrameworkMethod.class), this).evaluate(); in expected_exception_assert_did_not_match()
131 public Statement apply(final Statement base, FrameworkMethod method, Object target) { in apply()
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/
DSandboxTestRunner.java22 import org.junit.runners.model.FrameworkMethod;
101 final List<FrameworkMethod> befores = testClass.getAnnotatedMethods(BeforeClass.class);
102 for (FrameworkMethod before : befores) {
110 final List<FrameworkMethod> afters = testClass.getAnnotatedMethods(AfterClass.class);
111 for (FrameworkMethod after : afters) {
120 protected void runChild(FrameworkMethod method, RunNotifier notifier) {
142 protected Sandbox getSandbox(FrameworkMethod method) {
157 protected InstrumentationConfiguration createClassLoaderConfig(FrameworkMethod method) {
183 …private void addInstrumentedPackages(FrameworkMethod method, InstrumentationConfiguration.Builder …
199 protected void configureSandbox(Sandbox sandbox, FrameworkMethod method) {
[all …]
/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) {
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/params/
DParameterizedRunnerDelegateFactory.java8 import org.junit.runners.model.FrameworkMethod;
34 List<FrameworkMethod> unmodifiableFrameworkMethodList = in createRunner()
57 static List<FrameworkMethod> generateUnmodifiableFrameworkMethodList( in generateUnmodifiableFrameworkMethodList()
60 List<FrameworkMethod> returnList = new ArrayList<>(); in generateUnmodifiableFrameworkMethodList()
62 for (FrameworkMethod method : testClass.getAnnotatedMethods(Test.class)) { in generateUnmodifiableFrameworkMethodList()
106 private static List<FrameworkMethod> createParameterizedMethods( in createParameterizedMethods()
107 FrameworkMethod baseMethod, Iterable<ParameterSet> parameterSetList, String suffix) { in createParameterizedMethods()
109 List<FrameworkMethod> returnList = new ArrayList<>(); in createParameterizedMethods()
DParameterizedFrameworkMethod.java7 import org.junit.runners.model.FrameworkMethod;
19 public class ParameterizedFrameworkMethod extends FrameworkMethod {
50 static List<FrameworkMethod> wrapAllFrameworkMethods( in wrapAllFrameworkMethods()
51 Collection<FrameworkMethod> frameworkMethods, String classParameterSetName) { in wrapAllFrameworkMethods()
52 List<FrameworkMethod> results = new ArrayList<>(); in wrapAllFrameworkMethods()
53 for (FrameworkMethod frameworkMethod : frameworkMethods) { in wrapAllFrameworkMethods()
DParameterizedRunnerDelegateCommon.java7 import org.junit.runners.model.FrameworkMethod;
22 private final List<FrameworkMethod> mParameterizedFrameworkMethodList;
25 List<FrameworkMethod> parameterizedFrameworkMethods) { in ParameterizedRunnerDelegateCommon()
41 public List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
/external/junit/src/main/java/org/junit/experimental/theories/
DTheories.java16 import org.junit.runners.model.FrameworkMethod;
127 for (FrameworkMethod each : computeTestMethods()) { in validateTestMethods()
160 protected List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
161 … List<FrameworkMethod> testMethods = new ArrayList<FrameworkMethod>(super.computeTestMethods()); in computeTestMethods()
162 List<FrameworkMethod> theoryMethods = getTestClass().getAnnotatedMethods(Theory.class); in computeTestMethods()
169 public Statement methodBlock(final FrameworkMethod method) { in methodBlock()
176 private final FrameworkMethod testMethod;
181 public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass) { in TheoryAnchor()
231 public Statement methodBlock(FrameworkMethod method) { in runWithCompleteAssignment()
251 protected Statement methodInvoker(FrameworkMethod method, Object test) { in runWithCompleteAssignment()
[all …]
/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()
32 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
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()
45 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
DInvokeMethod.java3 import org.junit.runners.model.FrameworkMethod;
7 private final FrameworkMethod testMethod;
10 public InvokeMethod(FrameworkMethod testMethod, Object target) { in InvokeMethod()
/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()
/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()
/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/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()
115 public List<FrameworkMethod> getAnnotatedMethods() { in getAnnotatedMethods()
116 List<FrameworkMethod> methods = collectValues(methodsForAnnotations); in getAnnotatedMethods()
125 public List<FrameworkMethod> getAnnotatedMethods( in getAnnotatedMethods()
281 for (FrameworkMethod each : getAnnotatedMethods(annotationClass)) { in collectAnnotatedMethodValues()
343 Comparator<FrameworkMethod> {
[all …]
DFrameworkMethod.java19 public class FrameworkMethod extends FrameworkMember<FrameworkMethod> { class
25 public FrameworkMethod(Method method) { in FrameworkMethod() method in FrameworkMethod
145 public boolean isShadowedBy(FrameworkMethod other) {
167 if (!FrameworkMethod.class.isInstance(obj)) {
170 return ((FrameworkMethod) obj).method.equals(method);
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/params/
DParameterizedRunnerDelegateFactoryTest.java11 import org.junit.runners.model.FrameworkMethod;
37 private final List<FrameworkMethod> mParameterizedFrameworkMethodList;
40 List<FrameworkMethod> parameterizedFrameworkMethods) throws InitializationError { in BadExampleRunnerDelegate()
51 public List<FrameworkMethod> computeTestMethods() { in computeTestMethods()
110 List<FrameworkMethod> methods = in testGenerateParameterizedFrameworkMethod()
126 for (FrameworkMethod method : methods) { in testGenerateParameterizedFrameworkMethod()
/external/junit/src/main/java/org/junit/runners/parameterized/
DBlockJUnit4ClassRunnerWithParameters.java15 import org.junit.runners.model.FrameworkMethod;
102 protected String testName(FrameworkMethod method) { in testName()
155 List<FrameworkMethod> befores = getTestClass() in withBeforeParams()
161 RunBeforeParams(Statement next, List<FrameworkMethod> befores) { in RunBeforeParams()
166 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
173 List<FrameworkMethod> afters = getTestClass() in withAfterParams()
179 RunAfterParams(Statement next, List<FrameworkMethod> afters) { in RunAfterParams()
184 protected void invokeMethod(FrameworkMethod method) throws Throwable { in invokeMethod()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java24 import org.junit.runners.model.FrameworkMethod;
223 protected InstrumentationConfiguration createClassLoaderConfig(final FrameworkMethod method) { in createClassLoaderConfig()
231 protected void configureSandbox(Sandbox sandbox, FrameworkMethod method) { in configureSandbox()
282 protected List<FrameworkMethod> getChildren() { in getChildren()
283 List<FrameworkMethod> children = new ArrayList<>(); in getChildren()
284 for (FrameworkMethod frameworkMethod : super.getChildren()) { in getChildren()
329 @Override protected boolean shouldIgnore(FrameworkMethod method) { in shouldIgnore()
335 protected SdkEnvironment getSandbox(FrameworkMethod method) { in getSandbox()
347 …protected void beforeTest(Sandbox sandbox, FrameworkMethod method, Method bootstrappedMethod) thro… in beforeTest()
390 protected void afterTest(FrameworkMethod method, Method bootstrappedMethod) { in afterTest()
[all …]
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
DSkipCheck.java9 import org.junit.runners.model.FrameworkMethod;
29 public abstract boolean shouldSkip(FrameworkMethod testMethod); in shouldSkip()
41 return shouldSkip(new FrameworkMethod(m)); in shouldSkip()

123