com.jayway.awaitility.core
Class FieldSupplierBuilder.AnnotationFieldSupplier<T>
java.lang.Object
com.jayway.awaitility.core.FieldSupplierBuilder.AnnotationFieldSupplier<T>
- All Implemented Interfaces:
- Callable<T>
- Enclosing class:
- FieldSupplierBuilder
public class FieldSupplierBuilder.AnnotationFieldSupplier<T>
- extends Object
- implements Callable<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldSupplierBuilder.AnnotationFieldSupplier
public FieldSupplierBuilder.AnnotationFieldSupplier()
andAnnotatedWith
public Callable<T> andAnnotatedWith(Class<? extends Annotation> annotationType)
- Find a field based on a name, type and annotation. E.g.
await().until(fieldIn(object).ofType(int.class).andWithName("fieldName").andAnnotatedWith(MyAnnotation.class), equalTo(2));
- Parameters:
annotationType
- The type of the annotation
- Returns:
- The supplier
call
public T call()
throws Exception
- Specified by:
call
in interface Callable<T>
- Throws:
Exception
Copyright © 2010. All Rights Reserved.