OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:testMethod
(Results
1 - 20
of
20
) sorted by null
/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
49
private final Set<Predicate<
TestMethod
>> predicates = new HashSet<Predicate<
TestMethod
>>();
124
public TestSuiteBuilder addRequirements(List<Predicate<
TestMethod
>> predicates) {
183
for (
TestMethod
test : testGrouping.getTests()) {
190
if (satisfiesAllPredicates(new
TestMethod
(testCase))) {
220
public final TestSuiteBuilder addRequirements(Predicate<
TestMethod
>... predicates) {
221
ArrayList<Predicate<
TestMethod
>> list = new ArrayList<Predicate<
TestMethod
>>();
252
private boolean satisfiesAllPredicates(
TestMethod
test) {
253
for (Predicate<
TestMethod
> predicate : predicates)
[
all
...]
TestGrouping.java
68
public List<
TestMethod
> getTests() {
69
List<
TestMethod
> testMethods = new ArrayList<
TestMethod
>();
71
for (Method
testMethod
: getTestMethods(testCase)) {
72
testMethods.add(new
TestMethod
(
testMethod
, testCase));
/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
);
/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
);
/cts/tools/test-progress-new/src/testprogress2/
MethodOriginator.java
40
* @param
testMethod
47
MethodOriginator(MethodDoc
testMethod
, ClassDoc clazz, String comment) {
48
mMethod =
testMethod
;
52
AnnotationDesc[] annots =
testMethod
.annotations();
TestCoverageDoclet.java
546
for (MethodDoc
testMethod
: testMethods) {
551
boolean disTest =
testMethod
.name().startsWith("_test");
553
ColorStat methodStat = new ColorStat(
testMethod
.name(), null);
560
MethodOriginator mo = new MethodOriginator(
testMethod
, clazz,
562
AnnotationDesc[] annots =
testMethod
.annotations();
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/runtime/
AndroidJUnitLaunchInfo.java
113
* @param
testMethod
test method to run
115
public void setTestMethod(String
testMethod
) {
116
mTestMethod =
testMethod
;
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
MethodTest.java
40
static class
TestMethod
{
41
public
TestMethod
() {
166
class TestMethodSub extends
TestMethod
{
212
m1 =
TestMethod
.class.getMethod("invokeInstanceTest", new Class[0]);
221
m1 =
TestMethod
.class.getMethod("invokeStaticTest", new Class[0]);
242
Method m1 =
TestMethod
.class.getMethod("invokeInstanceTest", new Class[0]);
243
Method m2 =
TestMethod
.class.getMethod("invokeInstanceTest", (Class[]) null);
259
Method m1 =
TestMethod
.class.getDeclaredMethod("invokeInstanceTest", new Class[0]);
260
Method m2 =
TestMethod
.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null);
280
mths =
TestMethod
.class.getDeclaredMethods()
[
all
...]
/frameworks/base/core/java/android/test/
InstrumentationTestCase.java
179
final Method
testMethod
= method;
184
runMethod(
testMethod
, tolerance);
/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
;
MediaPlayerStateUnitTestTemplate.java
77
* @param
testMethod
the method under test.
79
public void runTestOnMethod(MediaPlayerMethodUnderTest
testMethod
) {
80
mMethodUnderTest =
testMethod
;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
TestSuiteBuilderTest.java
159
private Predicate<
TestMethod
> testsWhoseNameContains(final String string) {
160
return new Predicate<
TestMethod
>() {
161
public boolean apply(
TestMethod
testMethod
) {
162
return
testMethod
.getName().contains(string);
/cts/tools/test-progress/src/
TestCoverageDoclet.java
417
public void addTestMethod(MethodDoc
testMethod
) {
418
if (testMethods.contains(
testMethod
)) {
419
System.out.println("warn:
testMethod
refers more than once to the targetMethod,
testMethod
="+
testMethod
);
421
testMethods.add(
testMethod
);
448
return "error: could not resolve targetMethod for class "+targetClass+", annotation was:"+targetAnnot+",
testMethod
= "+methodDoc.toString();
/cts/tools/utils/
CollectAllTests.java
298
Method
testMethod
= testClass.getMethod(testName, (Class[])null);
299
Annotation[] annotations =
testMethod
.getAnnotations();
351
testClass = new TestClass(testClassName, new ArrayList<
TestMethod
>());
355
testClass.mCases.add(new
TestMethod
(testName, "", "", knownFailure, false));
/prebuilt/common/groovy/
groovy-all-1.7.0.jar
Completed in 368 milliseconds