|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jayway.awaitility.core.FieldSupplierBuilder
public class FieldSupplierBuilder
The field supplier builder allows you to create a supplier based a field.
Nested Class Summary | |
---|---|
class |
FieldSupplierBuilder.AnnotationFieldSupplier<T>
|
class |
FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T>
|
class |
FieldSupplierBuilder.NameAndTypeFieldSupplier<T>
|
class |
FieldSupplierBuilder.NameFieldSupplier<T>
|
Constructor Summary | |
---|---|
FieldSupplierBuilder(java.lang.Object object)
|
Method Summary | ||
---|---|---|
|
ofType(java.lang.Class<T> fieldType)
Find a field based on a type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldSupplierBuilder(java.lang.Object object)
Method Detail |
---|
public <T> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<T> ofType(java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |