Class FieldSupplierBuilder.AnnotationFieldSupplier<T>

java.lang.Object
org.awaitility.core.FieldSupplierBuilder.AnnotationFieldSupplier<T>
All Implemented Interfaces:
Callable<T>
Enclosing class:
FieldSupplierBuilder

public class FieldSupplierBuilder.AnnotationFieldSupplier<T> extends Object implements Callable<T>
  • Constructor Details

    • AnnotationFieldSupplier

      public AnnotationFieldSupplier()
  • Method Details

    • 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()
      Specified by:
      call in interface Callable<T>