Class FieldSupplierBuilder.NameFieldSupplier<T>

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

public class FieldSupplierBuilder.NameFieldSupplier<T> extends Object implements Callable<T>
  • Field Details

    • foundField

      private final Field foundField
  • Constructor Details

    • NameFieldSupplier

      public NameFieldSupplier()
  • Method Details

    • andWithName

      public Callable<T> andWithName(String fieldName)
      Find a field based on the type and name. E.g.

       

      await().until(fieldIn(object).ofType(int.class).andWithName("fieldName"), equalTo(2));
      Parameters:
      fieldName - The name of the field
      Returns:
      The supplier
    • call

      public T call() throws Exception
      Specified by:
      call in interface Callable<T>
      Throws:
      Exception