public class FieldSupplierBuilder extends Object
Modifier and Type | Class and Description |
---|---|
class |
FieldSupplierBuilder.AnnotationFieldSupplier<T> |
class |
FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T> |
class |
FieldSupplierBuilder.NameAndTypeFieldSupplier<T> |
class |
FieldSupplierBuilder.NameFieldSupplier<T> |
Constructor and Description |
---|
FieldSupplierBuilder(Object object)
Constructor for FieldSupplierBuilder.
|
Modifier and Type | Method and Description |
---|---|
<T> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T> |
ofType(Class<T> fieldType)
Find a field based on a type.
|
public <T> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T> ofType(Class<T> fieldType)
await().until(fieldIn(object).ofType(int.class), equalTo(2));
You can also specify the field more accurately by continuing the statement: E.g.
await().until(fieldIn(object).ofType(int.class).andWithName("fieldName"), equalTo(2));
or
await().until(fieldIn(object).ofType(int.class).andAnnotatedWith(MyAnnotation.class).andWithName("fieldName"), equalTo(2));
T
- The type of the fieldfieldType
- The type of the field.Copyright © 2010–2016. All rights reserved.