Searched refs:getAnnotation (Results 1 - 25 of 208) sorted by relevance

123456789

/external/junit-params/src/main/java/junitparams/internal/annotation/
H A DFrameworkMethodAnnotations.java27 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { method in class:FrameworkMethodAnnotations
28 return frameworkMethod.getAnnotation(annotationType);
32 return getAnnotation(annotation) != null;
40 CustomParameters customParameters = frameworkMethod.getAnnotation(CustomParameters.class);
46 customParameters = annotation.annotationType().getAnnotation(CustomParameters.class);
/external/junit/src/main/java/org/junit/runners/model/
H A DAnnotatable.java19 <T extends Annotation> T getAnnotation(Class<T> annotationType); method in interface:Annotatable
H A DFrameworkField.java34 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { method in class:FrameworkField
35 return field.getAnnotation(annotationType);
/external/caliper/caliper/src/main/java/com/google/caliper/json/
H A DAnnotationExclusionStrategy.java28 return f.getAnnotation(ExcludeFromJson.class) != null;
32 return clazz.getAnnotation(ExcludeFromJson.class) != null;
/external/junit/src/main/java/org/junit/experimental/theories/internal/
H A DSpecificDataPointsSupplier.java25 String requestedName = sig.getAnnotation(FromDataPoints.class).value();
30 String[] fieldNames = field.getAnnotation(DataPoint.class).value();
42 String requestedName = sig.getAnnotation(FromDataPoints.class).value();
47 String[] fieldNames = field.getAnnotation(DataPoints.class).value();
59 String requestedName = sig.getAnnotation(FromDataPoints.class).value();
64 String[] methodNames = method.getAnnotation(DataPoint.class).value();
76 String requestedName = sig.getAnnotation(FromDataPoints.class).value();
81 String[] methodNames = method.getAnnotation(DataPoints.class).value();
/external/guice/core/src/com/google/inject/spi/
H A DProvidesMethodBinding.java49 Annotation getAnnotation(); method in interface:ProvidesMethodBinding
/external/junit/src/main/java/org/junit/internal/builders/
H A DIgnoredBuilder.java10 if (testClass.getAnnotation(Ignore.class) != null) {
/external/wycheproof/java/com/google/security/wycheproof/
H A DWycheproofRunner.java143 this.targetProvider = runnerClass.getAnnotation(Provider.class);
144 this.fast = runnerClass.getAnnotation(Fast.class);
145 this.presubmit = runnerClass.getAnnotation(Presubmit.class);
164 ExcludedTest excludedTest = description.getAnnotation(ExcludedTest.class);
172 NoPresubmitTest ignoreOn = description.getAnnotation(NoPresubmitTest.class);
181 SlowTest ignoreOn = description.getAnnotation(SlowTest.class);
/external/mockito/src/test/java/org/mockito/
H A DAnnotationsAreCopiedFromMockedTypeTest.java26 AnnotationWithDefaultValue onClassDefaultValue = mock(OnClass.class).getClass().getAnnotation(AnnotationWithDefaultValue.class);
27 AnnotationWithCustomValue onClassCustomValue = mock(OnClass.class).getClass().getAnnotation(AnnotationWithCustomValue.class);
37 AnnotationWithDefaultValue onClassDefaultValue = method("method", mock(OnMethod.class)).getAnnotation(AnnotationWithDefaultValue.class);
38 AnnotationWithCustomValue onClassCustomValue = method("method", mock(OnMethod.class)).getAnnotation(AnnotationWithCustomValue.class);
46 AnnotationWithDefaultValue onClassDefaultValue = firstParamOf(method("method", mock(OnMethod.class))).getAnnotation(AnnotationWithDefaultValue.class);
47 AnnotationWithCustomValue onClassCustomValue = firstParamOf(method("method", mock(OnMethod.class))).getAnnotation(AnnotationWithCustomValue.class);
59 return getAnnotation(annotationClass) != null;
64 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
/external/testng/src/test/java/test/verify/
H A DVerifyMethodInterceptor.java21 if (m.getMethod().getMethod().getAnnotation(Verifier.class) != null) {
34 if (m.getMethod().getMethod().getAnnotation(Verify.class) != null) {
/external/guice/extensions/persist/src/com/google/inject/persist/finder/
H A DDynamicFinder.java32 this.finder = method.getAnnotation(Finder.class);
/external/junit-params/src/main/java/junitparams/internal/parameters/
H A DParametersFromValue.java11 parametersAnnotation = frameworkMethod.getAnnotation(Parameters.class);
H A DParametersFromExternalClassMethod.java12 annotation = frameworkMethod.getAnnotation(Parameters.class);
H A DParametersFromTestClassMethod.java15 annotation = frameworkMethod.getAnnotation(Parameters.class);
/external/junit/src/main/java/org/junit/internal/runners/
H A DTestMethod.java30 return method.getAnnotation(Ignore.class) != null;
34 Test annotation = method.getAnnotation(Test.class);
43 Test annotation = method.getAnnotation(Test.class);
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
H A DFeatureEnumTest.java40 annotationClass.getAnnotation(TesterAnnotation.class));
42 annotationClass.getAnnotation(Retention.class);
51 annotationClass.getAnnotation(Inherited.class));
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
H A DNodeWithAnnotationsBuildersTest.java48 assertEquals(annotation, testClass.getAnnotation(0));
49 assertEquals(NormalAnnotationExpr.class, testClass.getAnnotation(0).getClass());
62 assertEquals("value", testClass.getAnnotation(0).asSingleMemberAnnotationExpr().getMemberValue().toString());
/external/annotation-tools/scene-lib/src/type/
H A DType.java54 public String getAnnotation(int index) { method in class:Type
/external/junit/src/main/java/org/junit/experimental/theories/suppliers/
H A DTestedOnSupplier.java18 TestedOn testedOn = sig.getAnnotation(TestedOn.class);
/external/vogar/test/vogar/android/
H A DVogarArgsRule.java36 VogarArgs vogarArgs = description.getAnnotation(VogarArgs.class);
/external/jcommander/src/main/java/com/beust/jcommander/
H A DParameterized.java44 Annotation annotation = f.getAnnotation(Parameter.class);
45 Annotation delegateAnnotation = f.getAnnotation(ParametersDelegate.class);
46 Annotation dynamicParameter = f.getAnnotation(DynamicParameter.class);
65 Annotation annotation = m.getAnnotation(Parameter.class);
66 Annotation delegateAnnotation = m.getAnnotation(ParametersDelegate.class);
67 Annotation dynamicParameter = m.getAnnotation(DynamicParameter.class);
178 return m_method.getAnnotation(DynamicParameter.class) != null;
180 return m_field.getAnnotation(DynamicParameter.class) != null;
/external/junit/src/main/java/org/junit/experimental/theories/
H A DTheories.java87 if (field.getAnnotation(DataPoint.class) == null && field.getAnnotation(DataPoints.class) == null) {
103 if (method.getAnnotation(DataPoint.class) == null && method.getAnnotation(DataPoints.class) == null) {
123 if (each.getAnnotation(Theory.class) != null) {
191 boolean hasTheoryAnnotation = testMethod.getAnnotation(Theory.class) != null;
293 Theory annotation = testMethod.getMethod().getAnnotation(
/external/desugar/java/com/google/devtools/common/options/testing/
H A DOptionsTester.java65 .that(field.getAnnotation(Option.class))
85 Option option = field.getAnnotation(Option.class);
101 Option option = field.getAnnotation(Option.class);
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
H A DJpaLocalTxnInterceptor.java110 transactional = method.getAnnotation(Transactional.class);
113 transactional = targetClass.getAnnotation(Transactional.class);
117 transactional = Internal.class.getAnnotation(Transactional.class);
/external/smali/util/src/main/java/org/jf/util/jcommander/
H A DExtendedCommands.java50 ExtendedParameters anno = command.getClass().getAnnotation(ExtendedParameters.class);
118 ExtendedParameter extendedParameter = field.getAnnotation(ExtendedParameter.class);
144 Parameters parameters = jc.getObjects().get(0).getClass().getAnnotation(Parameters.class);

Completed in 3609 milliseconds

123456789