public class FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T> extends Object implements Callable<T>
Constructor and Description |
---|
NameAndAnnotationFieldSupplier() |
Modifier and Type | Method and Description |
---|---|
FieldSupplierBuilder.NameFieldSupplier<T> |
andAnnotatedWith(Class<? extends Annotation> annotationType)
Find a field based on the type and an annotation.
|
FieldSupplierBuilder.AnnotationFieldSupplier<T> |
andWithName(String fieldName)
Find a field based on the type and name.
|
T |
call() |
public FieldSupplierBuilder.AnnotationFieldSupplier<T> andWithName(String fieldName)
await().until(fieldIn(object).ofType(int.class).andWithName("fieldName"), equalTo(2));
fieldName
- The name of the fieldpublic FieldSupplierBuilder.NameFieldSupplier<T> andAnnotatedWith(Class<? extends Annotation> annotationType)
await().until(fieldIn(object).ofType(int.class).andAnnotatedWith(MyAnnotation.class), equalTo(2));
annotationType
- The name of the fieldCopyright © 2010–2016. All rights reserved.