public class FieldSupplierBuilder.NameAndTypeFieldSupplier<T> extends Object implements Callable<T>
Constructor and Description |
---|
NameAndTypeFieldSupplier() |
Modifier and Type | Method and Description |
---|---|
<S> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<S> |
andOfType(Class<S> type)
Find a field based on the annotation and field type.
|
FieldSupplierBuilder.AnnotationFieldSupplier<T> |
andWithName(String fieldName)
Find a field based on the annotation and field name.
|
T |
call() |
public FieldSupplierBuilder.AnnotationFieldSupplier<T> andWithName(String fieldName)
await().until(fieldIn(object).annotatedWith(MyAnnotation.class).andWithName("fieldName"), equalTo(someObject));
fieldName
- The type of name of the fieldpublic <S> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<S> andOfType(Class<S> type)
await().until(fieldIn(object).annotatedWith(MyAnnotation.class).andOfType(int.class), equalTo(2));
S
- The type of the fieldtype
- The class representing the type of the fieldCopyright © 2010–2015. All rights reserved.