Home
last modified time | relevance | path

Searched refs:getAnnotation (Results 1 – 25 of 179) 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/guice/core/src/com/google/inject/
DKey.java150 public final Annotation getAnnotation() { in getAnnotation() method in Key
151 return annotationStrategy.getAnnotation(); in getAnnotation()
159 Annotation annotation = annotationStrategy.getAnnotation(); in getAnnotationName()
304 Annotation getAnnotation(); in getAnnotation() method
368 public Annotation getAnnotation() { in getAnnotation() method in Key.NullAnnotationStrategy
403 public Annotation getAnnotation() { in getAnnotation() method in Key.AnnotationInstanceStrategy
456 public Annotation getAnnotation() { in getAnnotation() method in Key.AnnotationTypeStrategy
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/util/
DAnnotationProcessingUtilsTest.java44 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_NotOnClassNorMethod()
55 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_NotOnClassButOnMethod()
65 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_NotOnClassDifferentOneOnMethod()
75 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_OnClassButNotOnMethod()
86 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_OnClassAndMethod()
98 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_OnRuleButNotOnMethod()
109 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetTargetAnnotation_OnRuleAndMethod()
119 retrievedAnnotation = AnnotationProcessingUtils.getAnnotation( in testGetMetaAnnotation_Indirectly()
/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/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java175 Option annotation = optionField.getAnnotation(Option.class); in getAcceptedConverterReturnTypes()
321 Option annotation = optionField.getAnnotation(Option.class); in checkConverter()
336 ProcessorUtils.getAnnotation(elementUtils, typeUtils, optionField, Option.class); in checkConverter()
362 Option annotation = optionField.getAnnotation(Option.class); in checkEffectTagRationality()
395 Option annotation = optionField.getAnnotation(Option.class); in checkMetadataTagAndCategoryRationality()
417 Option annotation = optionField.getAnnotation(Option.class); in checkOldCategoriesAreNotUsed()
428 Option annotation = optionField.getAnnotation(Option.class); in checkOptionName()
454 Option annotation = optionField.getAnnotation(Option.class); in checkExpansionOptions()
459 ProcessorUtils.getAnnotation(elementUtils, typeUtils, optionField, Option.class); in checkExpansionOptions()
/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.java104 transactional = method.getAnnotation(Transactional.class); in readTransactionMetadata()
107 transactional = targetClass.getAnnotation(Transactional.class); in readTransactionMetadata()
111 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/guice/core/src/com/google/inject/internal/
DProviderMethodsModule.java111 Annotation annotation = getAnnotation(binder, method); in getProviderMethods()
160 provider.getAnnotation().annotationType() == Provides.class in getProviderMethods()
162 : "@" + provider.getAnnotation().annotationType().getCanonicalName(); in getProviderMethods()
181 private Annotation getAnnotation(Binder binder, Method method) { in getAnnotation() method in ProviderMethodsModule
187 Annotation foundAnnotation = method.getAnnotation(annotationClass); in getAnnotation()
/external/grpc-grpc-java/gae-interop-testing/gae-jdk7/src/main/java/io/grpc/testing/integration/
DOkHttpClientInteropServlet.java112 if (method.getAnnotation(Test.class) != null) { in doGetHelper()
113 if (method.getAnnotation(Ignore.class) != null) { in doGetHelper()
118 } else if (method.getAnnotation(Before.class) != null) { in doGetHelper()
120 } else if (method.getAnnotation(After.class) != null) { in doGetHelper()
/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/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/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DAnnotationElementValueGen.java78 a.getAnnotation(), in getElementValue()
82 public AnnotationEntryGen getAnnotation() in getAnnotation() method in AnnotationElementValueGen
/external/robolectric-shadows/junit/src/main/java/org/robolectric/internal/
DSandboxTestRunner.java184 SandboxConfig classConfig = getTestClass().getJavaClass().getAnnotation(SandboxConfig.class);
191 SandboxConfig methodConfig = method.getAnnotation(SandboxConfig.class);
326 addShadows(shadowClasses, getTestClass().getJavaClass().getAnnotation(SandboxConfig.class));
327 addShadows(shadowClasses, method.getAnnotation(SandboxConfig.class));
347 return method.getAnnotation(Ignore.class) != null;

12345678