OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:testMethod
(Results
1 - 25
of
32
) sorted by null
1
2
/frameworks/base/test-runner/src/android/test/suitebuilder/
AssignableFrom.java
21
class AssignableFrom implements Predicate<
TestMethod
> {
29
public boolean apply(
TestMethod
testMethod
) {
30
return root.isAssignableFrom(
testMethod
.getEnclosingClass());
TestSuiteBuilder.java
48
private final Set<Predicate<
TestMethod
>> predicates = new HashSet<Predicate<
TestMethod
>>();
123
public TestSuiteBuilder addRequirements(List<Predicate<
TestMethod
>> predicates) {
182
for (
TestMethod
test : testGrouping.getTests()) {
189
if (satisfiesAllPredicates(new
TestMethod
(testCase))) {
219
public final TestSuiteBuilder addRequirements(Predicate<
TestMethod
>... predicates) {
220
ArrayList<Predicate<
TestMethod
>> list = new ArrayList<Predicate<
TestMethod
>>();
251
private boolean satisfiesAllPredicates(
TestMethod
test) {
252
for (Predicate<
TestMethod
> predicate : predicates)
[
all
...]
/external/junit/src/org/junit/internal/runners/statements/
InvokeMethod.java
13
public InvokeMethod(FrameworkMethod
testMethod
, Object target) {
14
fTestMethod=
testMethod
;
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
HasClassAnnotation.java
21
import android.test.suitebuilder.
TestMethod
;
25
* A predicate that checks to see if a {@link android.test.suitebuilder.
TestMethod
} has a specific annotation on the
30
class HasClassAnnotation implements Predicate<
TestMethod
> {
38
public boolean apply(
TestMethod
testMethod
) {
39
return
testMethod
.getEnclosingClass().getAnnotation(annotationClass) != null;
HasMethodAnnotation.java
20
import android.test.suitebuilder.
TestMethod
;
25
* A predicate that checks to see if a the method represented by {@link
TestMethod
} has a certain
30
class HasMethodAnnotation implements Predicate<
TestMethod
> {
38
public boolean apply(
TestMethod
testMethod
) {
39
return
testMethod
.getAnnotation(annotationClass) != null;
HasAnnotation.java
21
import android.test.suitebuilder.
TestMethod
;
26
* A predicate that checks to see if a {@link
TestMethod
} has a specific annotation, either on the
31
public class HasAnnotation implements Predicate<
TestMethod
> {
33
private Predicate<
TestMethod
> hasMethodOrClassAnnotation;
41
public boolean apply(
TestMethod
testMethod
) {
42
return hasMethodOrClassAnnotation.apply(
testMethod
);
/external/clang/test/SemaCXX/
tag-ambig.cpp
17
virtual bool
testMethod
(Test::Point& p) = 0;
/external/javassist/src/test/test/javassist/proxy/
ProxyFactoryCompatibilityTest.java
56
proxy1.
testMethod
();
63
proxy2.
testMethod
();
80
proxy3.
testMethod
();
86
proxy4.
testMethod
();
97
public void
testMethod
()
112
public void
testMethod
();
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
HasClassAnnotationTest.java
19
import android.test.suitebuilder.
TestMethod
;
41
TestMethod
testMethod
= new
TestMethod
(method, aClass);
42
return new HasClassAnnotation(expectedClassification).apply(
testMethod
);
HasMethodAnnotationTest.java
19
import android.test.suitebuilder.
TestMethod
;
43
TestMethod
testMethod
= new
TestMethod
(method, aClass);
44
return new HasMethodAnnotation(expectedClassification).apply(
testMethod
);
HasAnnotationTest.java
19
import android.test.suitebuilder.
TestMethod
;
47
TestMethod
testMethod
= new
TestMethod
(method, aClass);
48
return new HasAnnotation(Example.class).apply(
testMethod
);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
CustomRobolectricTestRunnerTest.java
21
static Method
testMethod
;
44
assertEquals("shouldInvokeBeforeTestWithTheCorrectMethod",
testMethod
.getName());
63
testMethod
= method;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/runtime/
AndroidJUnitLaunchInfo.java
126
* @param
testMethod
test method to run
128
public void setTestMethod(String
testMethod
) {
129
mTestMethod =
testMethod
;
/frameworks/testing/androidtestlib/src/com/android/test/runner/
TestLoader.java
143
for (Method
testMethod
: loadedClass.getMethods()) {
144
if (
testMethod
.isAnnotationPresent(org.junit.Test.class)) {
/cts/tools/utils/
CollectAllTests.java
345
Method
testMethod
= testClass.getMethod(testName, (Class[])null);
346
Annotation[] annotations =
testMethod
.getAnnotations();
381
for (Method
testMethod
: testMethods) {
382
String testName =
testMethod
.getName();
389
if (
testMethod
.getParameterTypes().length != 0) {
392
if (!
testMethod
.getReturnType().equals(Void.TYPE)) {
395
if (!Modifier.isPublic(
testMethod
.getModifiers())) {
437
testClass = new TestClass(testClassName, new ArrayList<
TestMethod
>());
441
testClass.mCases.add(new
TestMethod
(testName, "", "", knownFailure, false, false));
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
MethodTest.java
26
static class
TestMethod
{
27
public
TestMethod
() {
130
class TestMethodSub extends
TestMethod
{
144
m1 =
TestMethod
.class.getMethod("invokeInstanceTest", new Class[0]);
150
m1 =
TestMethod
.class.getMethod("invokeStaticTest", new Class[0]);
166
mths =
TestMethod
.class.getDeclaredMethods();
169
.getDeclaringClass().equals(
TestMethod
.class));
179
Method mth =
TestMethod
.class.getMethod("voidMethod", new Class[0]);
185
mth =
TestMethod
.class.getMethod("intMethod", new Class[0]);
197
Class cl =
TestMethod
.class
[
all
...]
/external/junit/src/org/junit/experimental/theories/internal/
Assignments.java
36
* Returns a new assignment list for {@code
testMethod
}, with no params
39
public static Assignments allUnassigned(Method
testMethod
,
44
signatures.addAll(ParameterSignature.signatures(
testMethod
));
/external/junit/src/org/junit/internal/runners/
JUnit4ClassRunner.java
97
TestMethod
testMethod
= wrapMethod(method);
98
new MethodRoadie(test,
testMethod
, notifier, description).run();
108
protected
TestMethod
wrapMethod(Method method) {
109
return new
TestMethod
(method, fTestClass);
/frameworks/base/core/tests/utillib/src/android/test/
BandwidthTestCase.java
75
final Method
testMethod
= method;
80
runMethod(
testMethod
, tolerance, repetitive);
/frameworks/base/test-runner/src/android/test/
InstrumentationTestRunner.java
30
import android.test.suitebuilder.
TestMethod
;
311
Predicate<
TestMethod
> testSizePredicate = null;
312
Predicate<
TestMethod
> testAnnotationPredicate = null;
313
Predicate<
TestMethod
> testNotAnnotationPredicate = null;
411
List<Predicate<
TestMethod
>> getBuilderRequirements() {
412
return new ArrayList<Predicate<
TestMethod
>>();
432
* Expected format: com.android.TestClass#
testMethod
458
private Predicate<
TestMethod
> getSizePredicateFromArg(String sizeArg) {
477
private Predicate<
TestMethod
> getAnnotationPredicate(String annotationClassName) {
491
private Predicate<
TestMethod
> getNotAnnotationPredicate(String annotationClassName)
[
all
...]
/external/guava/guava-testlib/src/com/google/common/testing/
NullPointerTester.java
137
* Runs {@link #
testMethod
} on every public static method in class
143
testMethod
(null, method);
149
* Runs {@link #
testMethod
} on every public instance method of
156
testMethod
(instance, method);
169
public void
testMethod
(Object instance, Method method) throws Exception {
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
UiAutomatorTestRunner.java
292
Method
testMethod
= null;
294
testMethod
= test.getClass().getMethod(testName);
296
if (
testMethod
.isAnnotationPresent(RepetitiveTest.class)) {
297
int numIterations =
testMethod
.getAnnotation(RepetitiveTest.class)
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
MethodTest.java
35
static class
TestMethod
{
36
public
TestMethod
() {
161
class TestMethodSub extends
TestMethod
{
201
m1 =
TestMethod
.class.getMethod("invokeInstanceTest", new Class[0]);
210
m1 =
TestMethod
.class.getMethod("invokeStaticTest", new Class[0]);
224
Method m1 =
TestMethod
.class.getMethod("invokeInstanceTest", new Class[0]);
225
Method m2 =
TestMethod
.class.getMethod("invokeInstanceTest", (Class[]) null);
234
Method m1 =
TestMethod
.class.getDeclaredMethod("invokeInstanceTest", new Class[0]);
235
Method m2 =
TestMethod
.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null);
249
mths =
TestMethod
.class.getDeclaredMethods()
[
all
...]
/frameworks/base/core/java/android/test/
InstrumentationTestCase.java
184
final Method
testMethod
= method;
189
runMethod(
testMethod
, tolerance, repetitive);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaRecorderStateUnitTestTemplate.java
53
* @param
testMethod
the method under test.
55
public void runTestOnMethod(MediaRecorderMethodUnderTest
testMethod
) {
56
mMethodUnderTest =
testMethod
;
Completed in 1410 milliseconds
1
2