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
45
) sorted by null
1
2
/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/src/android/test/suitebuilder/
AssignableFrom.java
21
class AssignableFrom implements Predicate<
TestMethod
> {
29
public boolean apply(
TestMethod
testMethod
) {
30
return root.isAssignableFrom(
testMethod
.getEnclosingClass());
TestPredicates.java
34
public static final Predicate<
TestMethod
> SELECT_INSTRUMENTATION =
36
public static final Predicate<
TestMethod
> REJECT_INSTRUMENTATION =
39
public static final Predicate<
TestMethod
> SELECT_SMOKE = new HasAnnotation(Smoke.class);
40
public static final Predicate<
TestMethod
> SELECT_SMALL = new HasAnnotation(SmallTest.class);
41
public static final Predicate<
TestMethod
> SELECT_MEDIUM = new HasAnnotation(MediumTest.class);
42
public static final Predicate<
TestMethod
> SELECT_LARGE = new HasAnnotation(LargeTest.class);
43
public static final Predicate<
TestMethod
> REJECT_SUPPRESSED =
TestMethod.java
30
public class
TestMethod
{
36
public
TestMethod
(Method method, Class<? extends TestCase> enclosingClass) {
40
public
TestMethod
(String methodName, Class<? extends TestCase> enclosingClass) {
46
public
TestMethod
(TestCase testCase) {
119
TestMethod
that = (
TestMethod
) o;
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
...]
TestGrouping.java
70
public List<
TestMethod
> getTests() {
71
List<
TestMethod
> testMethods = new ArrayList<
TestMethod
>();
73
for (Method
testMethod
: getTestMethods(testCase)) {
74
testMethods.add(new
TestMethod
(
testMethod
, testCase));
/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/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
InvocationTargetExceptionTest.java
29
static class
TestMethod
{
30
public
TestMethod
() {
117
Method mth =
TestMethod
.class.getDeclaredMethod(
120
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
139
Method mth =
TestMethod
.class.getDeclaredMethod(
142
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
160
Method mth =
TestMethod
.class.getDeclaredMethod(
163
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
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
...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
TestGroupingTest.java
42
List<
TestMethod
> tests = mGrouping.getTests();
AssignableFromTest.java
52
private
TestMethod
testMethodFor(Class<? extends TestCase> aClass)
55
return new
TestMethod
(method, aClass);
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
InvocationTargetExceptionTest.java
31
static class
TestMethod
{
32
public
TestMethod
() {
134
Method mth =
TestMethod
.class.getDeclaredMethod(
137
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
156
Method mth =
TestMethod
.class.getDeclaredMethod(
159
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
177
Method mth =
TestMethod
.class.getDeclaredMethod(
180
Object ret = mth.invoke(new
TestMethod
(), new Object[0]);
198
Method mth =
TestMethod
.class.getDeclaredMethod(
201
Object ret = mth.invoke(new
TestMethod
(), new Object[0])
[
all
...]
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
...]
/external/droiddriver/src/com/google/android/droiddriver/runner/
TestRunner.java
24
import android.test.suitebuilder.
TestMethod
;
111
List<Predicate<
TestMethod
>> getBuilderRequirements() {
112
List<Predicate<
TestMethod
>> requirements = Lists.newArrayList();
113
requirements.add(new Predicate<
TestMethod
>() {
115
public boolean apply(
TestMethod
arg0) {
133
private <T extends Annotation> T getAnnotation(
TestMethod
testMethod
, Class<T> clazz) {
134
T annotation =
testMethod
.getAnnotation(clazz);
136
annotation =
testMethod
.getEnclosingClass().getAnnotation(clazz);
/external/junit/src/org/junit/internal/runners/
TestMethod.java
20
public class
TestMethod
{
24
public
TestMethod
(Method method, TestClass testClass) {
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/test-runner/src/android/test/
InstrumentationCoreTestRunner.java
35
import android.test.suitebuilder.
TestMethod
;
197
List<Predicate<
TestMethod
>> getBuilderRequirements() {
198
List<Predicate<
TestMethod
>> builderRequirements =
200
Predicate<
TestMethod
> brokenTestPredicate =
204
Predicate<
TestMethod
> sideEffectPredicate =
/cts/tests/core/runner/src/android/test/
InstrumentationCtsTestRunner.java
29
import android.test.suitebuilder.
TestMethod
;
231
List<Predicate<
TestMethod
>> getBuilderRequirements() {
232
List<Predicate<
TestMethod
>> builderRequirements =
235
Predicate<
TestMethod
> brokenTestPredicate =
240
Predicate<
TestMethod
> sideEffectPredicate =
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
TestDotTreeGenerator.cs
43
[
TestMethod
]
TestFastLexer.cs
44
[
TestMethod
]
/cts/tools/utils/
DescriptionGenerator.java
413
void appendTestCases(Node elem, Collection<
TestMethod
> cases) {
418
for (
TestMethod
caze : cases) {
496
Collection<
TestMethod
> mCases;
504
TestClass(String name, Collection<
TestMethod
> cases) {
520
* Get all the
TestMethod
from a ClassDoc, including inherited methods.
523
* @return A collection of
TestMethod
.
525
Collection<
TestMethod
> getTestMethods(ExpectationStore expectationStore, ClassDoc clazz) {
528
ArrayList<
TestMethod
> cases = new ArrayList<
TestMethod
>();
560
cases.add(new
TestMethod
(name, method.commentText(), controller, knownFailure
[
all
...]
Completed in 308 milliseconds
1
2