Home
last modified time | relevance | path

Searched refs:getAnnotation (Results 1 – 25 of 178) sorted by relevance

12345678

/external/junit/src/main/java/org/junit/experimental/theories/internal/
DSpecificDataPointsSupplier.java25 String requestedName = sig.getAnnotation(FromDataPoints.class).value(); in getSingleDataPointFields()
30 String[] fieldNames = field.getAnnotation(DataPoint.class).value(); in getSingleDataPointFields()
42 String requestedName = sig.getAnnotation(FromDataPoints.class).value(); in getDataPointsFields()
47 String[] fieldNames = field.getAnnotation(DataPoints.class).value(); in getDataPointsFields()
59 String requestedName = sig.getAnnotation(FromDataPoints.class).value(); in getSingleDataPointMethods()
64 String[] methodNames = method.getAnnotation(DataPoint.class).value(); in getSingleDataPointMethods()
76 String requestedName = sig.getAnnotation(FromDataPoints.class).value(); in getDataPointsMethods()
81 String[] methodNames = method.getAnnotation(DataPoints.class).value(); in getDataPointsMethods()
/external/mockito/src/test/java/org/mockito/
DAnnotationsAreCopiedFromMockedTypeTest.java26 …WithDefaultValue onClassDefaultValue = mock(OnClass.class).getClass().getAnnotation(AnnotationWith… in mock_should_have_annotations_copied_from_mocked_type_at_class_level()
27 …AnnotationWithCustomValue onClassCustomValue = mock(OnClass.class).getClass().getAnnotation(Annota… in mock_should_have_annotations_copied_from_mocked_type_at_class_level()
37 …ultValue onClassDefaultValue = method("method", mock(OnMethod.class)).getAnnotation(AnnotationWith… in mock_should_have_annotations_copied_from_mocked_type_on_methods()
38 …stomValue onClassCustomValue = method("method", mock(OnMethod.class)).getAnnotation(AnnotationWith… in mock_should_have_annotations_copied_from_mocked_type_on_methods()
46 …ssDefaultValue = firstParamOf(method("method", mock(OnMethod.class))).getAnnotation(AnnotationWith… in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters()
47 …assCustomValue = firstParamOf(method("method", mock(OnMethod.class))).getAnnotation(AnnotationWith… in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters()
59 return getAnnotation(annotationClass) != null; in firstParamOf()
64 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in firstParamOf() method in AnnotationsAreCopiedFromMockedTypeTest
/external/junit-params/src/main/java/junitparams/internal/annotation/
DFrameworkMethodAnnotations.java27 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() method in FrameworkMethodAnnotations
28 return frameworkMethod.getAnnotation(annotationType); in getAnnotation()
32 return getAnnotation(annotation) != null; in hasAnnotation()
40 CustomParameters customParameters = frameworkMethod.getAnnotation(CustomParameters.class); in getCustomParameters()
46 customParameters = annotation.annotationType().getAnnotation(CustomParameters.class); in getCustomParameters()
/external/wycheproof/java/com/google/security/wycheproof/
DWycheproofRunner.java143 this.targetProvider = runnerClass.getAnnotation(Provider.class); in ExcludeTestFilter()
144 this.fast = runnerClass.getAnnotation(Fast.class); in ExcludeTestFilter()
145 this.presubmit = runnerClass.getAnnotation(Presubmit.class); in ExcludeTestFilter()
164 ExcludedTest excludedTest = description.getAnnotation(ExcludedTest.class); in isOkayToRunTest()
172 NoPresubmitTest ignoreOn = description.getAnnotation(NoPresubmitTest.class); in isOkayToRunTest()
181 SlowTest ignoreOn = description.getAnnotation(SlowTest.class); in isOkayToRunTest()
/external/jcommander/src/main/java/com/beust/jcommander/
DParameterized.java44 Annotation annotation = f.getAnnotation(Parameter.class); in parseArg()
45 Annotation delegateAnnotation = f.getAnnotation(ParametersDelegate.class); in parseArg()
46 Annotation dynamicParameter = f.getAnnotation(DynamicParameter.class); in parseArg()
65 Annotation annotation = m.getAnnotation(Parameter.class); in parseArg()
66 Annotation delegateAnnotation = m.getAnnotation(ParametersDelegate.class); in parseArg()
67 Annotation dynamicParameter = m.getAnnotation(DynamicParameter.class); in parseArg()
178 return m_method.getAnnotation(DynamicParameter.class) != null; in isDynamicParameter()
180 return m_field.getAnnotation(DynamicParameter.class) != null; in isDynamicParameter()
/external/junit/src/main/java/org/junit/experimental/theories/
DTheories.java87 …if (field.getAnnotation(DataPoint.class) == null && field.getAnnotation(DataPoints.class) == null)… in validateDataPointFields()
103 …if (method.getAnnotation(DataPoint.class) == null && method.getAnnotation(DataPoints.class) == nul… in validateDataPointMethods()
123 if (each.getAnnotation(Theory.class) != null) { in validateTestMethods()
191 boolean hasTheoryAnnotation = testMethod.getAnnotation(Theory.class) != null; in evaluate()
293 Theory annotation = testMethod.getMethod().getAnnotation(
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java172 Option annotation = optionField.getAnnotation(Option.class); in getAcceptedConverterReturnTypes()
318 Option annotation = optionField.getAnnotation(Option.class); in checkConverter()
333 ProcessorUtils.getAnnotation(elementUtils, typeUtils, optionField, Option.class); in checkConverter()
359 Option annotation = optionField.getAnnotation(Option.class); in checkEffectTagRationality()
392 Option annotation = optionField.getAnnotation(Option.class); in checkMetadataTagAndCategoryRationality()
414 Option annotation = optionField.getAnnotation(Option.class); in checkOldCategoriesAreNotUsed()
425 Option annotation = optionField.getAnnotation(Option.class); in checkOptionName()
451 Option annotation = optionField.getAnnotation(Option.class); in checkExpansionOptions()
456 ProcessorUtils.getAnnotation(elementUtils, typeUtils, optionField, Option.class); in checkExpansionOptions()
498 Option annotation = optionField.getAnnotation(Option.class); in checkWrapperOptions()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DAccessibilityUtil.java60 AccessibilityChecks classChecksAnnotation = getAnnotation(); in checkViewIfCheckingEnabled()
76 return checkView(view, getAnnotation()); in checkView()
225 private static AccessibilityChecks getAnnotation() { in getAnnotation() method in AccessibilityUtil
236 classChecksAnnotation = method.getAnnotation(AccessibilityChecks.class); in getAnnotation()
238 classChecksAnnotation = clazz.getAnnotation(AccessibilityChecks.class); in getAnnotation()
/external/junit/src/main/java/org/junit/experimental/categories/
DCategories.java282 Category annotation= description.getAnnotation(Category.class); in directCategories()
322 IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); in getIncludedCategory()
327 IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); in isAnyIncluded()
332 ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); in getExcludedCategory()
337 ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); in isAnyExcluded()
352 if (each.getAnnotation(Category.class) != null) { in assertNoDescendantsHaveCategoryAnnotations()
/external/guice/core/src/com/google/inject/
DKey.java182 public final Annotation getAnnotation() {
183 return annotationStrategy.getAnnotation();
191 Annotation annotation = annotationStrategy.getAnnotation();
356 Annotation getAnnotation();
418 public Annotation getAnnotation() {
448 public Annotation getAnnotation() {
495 public Annotation getAnnotation() {
/external/junit/src/main/java/org/junit/internal/runners/
DTestMethod.java30 return method.getAnnotation(Ignore.class) != null; in isIgnored()
34 Test annotation = method.getAnnotation(Test.class); in getTimeout()
43 Test annotation = method.getAnnotation(Test.class); in getExpectedException()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DNodeWithAnnotationsBuildersTest.java48 assertEquals(annotation, testClass.getAnnotation(0)); in testAddAnnotation()
49 assertEquals(NormalAnnotationExpr.class, testClass.getAnnotation(0).getClass()); in testAddAnnotation()
62 …assertEquals("value", testClass.getAnnotation(0).asSingleMemberAnnotationExpr().getMemberValue().t… in testAddSingleMemberAnnotation()
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
DFeatureEnumTest.java40 annotationClass.getAnnotation(TesterAnnotation.class)); in assertGoodTesterAnnotation()
42 annotationClass.getAnnotation(Retention.class); in assertGoodTesterAnnotation()
51 annotationClass.getAnnotation(Inherited.class)); in assertGoodTesterAnnotation()
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15AnnotationFinder.java87 return cls.getAnnotation(a); in findAnnotationInSuperClasses()
91 A result = cls.getAnnotation(a); in findAnnotationInSuperClasses()
110 Annotation annotation = m.getAnnotation(a); in findAnnotation()
129 Annotation annotation = m.getAnnotation(a); in findAnnotation()
131 annotation = testClass.getAnnotation(a); in findAnnotation()
203 Annotation annotation = cons.getAnnotation(a); in findAnnotation()
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaLocalTxnInterceptor.java110 transactional = method.getAnnotation(Transactional.class); in readTransactionMetadata()
113 transactional = targetClass.getAnnotation(Transactional.class); in readTransactionMetadata()
117 transactional = Internal.class.getAnnotation(Transactional.class); in readTransactionMetadata()
/external/desugar/java/com/google/devtools/common/options/testing/
DOptionsTester.java65 .that(field.getAnnotation(Option.class)) in testAllInstanceFieldsAnnotatedWithOption()
85 Option option = field.getAnnotation(Option.class); in testAllDefaultValuesTestedBy()
101 Option option = field.getAnnotation(Option.class); in testAllDefaultValuesTestedBy()
/external/caliper/caliper/src/main/java/com/google/caliper/json/
DAnnotationExclusionStrategy.java28 return f.getAnnotation(ExcludeFromJson.class) != null; in shouldSkipField()
32 return clazz.getAnnotation(ExcludeFromJson.class) != null; in shouldSkipClass()
/external/smali/util/src/main/java/org/jf/util/jcommander/
DExtendedCommands.java50 ExtendedParameters anno = command.getClass().getAnnotation(ExtendedParameters.class); in getExtendedParameters()
118 ExtendedParameter extendedParameter = field.getAnnotation(ExtendedParameter.class); in parameterArgumentNames()
144 Parameters parameters = jc.getObjects().get(0).getClass().getAnnotation(Parameters.class); in getCommandDescription()
/external/testng/src/test/java/test/verify/
DVerifyMethodInterceptor.java21 if (m.getMethod().getMethod().getAnnotation(Verifier.class) != null) { in intercept()
34 if (m.getMethod().getMethod().getAnnotation(Verify.class) != null) { in intercept()
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/
DSandboxTestRunner.java173 SandboxConfig classConfig = getTestClass().getJavaClass().getAnnotation(SandboxConfig.class);
180 SandboxConfig methodConfig = method.getAnnotation(SandboxConfig.class);
315 addShadows(shadowClasses, getTestClass().getJavaClass().getAnnotation(SandboxConfig.class));
316 addShadows(shadowClasses, method.getAnnotation(SandboxConfig.class));
336 return method.getAnnotation(Ignore.class) != null;
/external/junit/src/main/java/org/junit/runners/model/
DFrameworkField.java34 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() method in FrameworkField
35 return field.getAnnotation(annotationType); in getAnnotation()
/external/guice/core/test/com/google/inject/
DKeyTest.java146 Foo instance = getClass().getDeclaredField("baz").getAnnotation(Foo.class); in testEqualityOfAnnotationTypesAndInstances()
242 AllDefaults allDefaults = HasAnnotations.class.getAnnotation(AllDefaults.class); in testKeysWithDefaultAnnotations()
245 Marker marker = HasAnnotations.class.getAnnotation(Marker.class); in testKeysWithDefaultAnnotations()
249 assertNull(noDefaults.getAnnotation()); in testKeysWithDefaultAnnotations()
253 assertNull(someDefaults.getAnnotation()); in testKeysWithDefaultAnnotations()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DRealElement.java94 Annotation annotation = key.getAnnotation(); in nameOf()
97 return key.getAnnotation().toString(); in nameOf()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DFacadeManager.java64 String replacedBy = method.getAnnotation(RpcDeprecated.class).value(); in invoke()
68 int requiredSdkLevel = method.getAnnotation(RpcMinSdk.class).value(); in invoke()
/external/guava/guava/src/com/google/common/reflect/
DParameter.java66 return getAnnotation(annotationType) != null; in isAnnotationPresent()
71 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() method in Parameter

12345678