com.jayway.awaitility.core
Class FieldSupplierBuilder.NameAndTypeFieldSupplier<T>

java.lang.Object
  extended by com.jayway.awaitility.core.FieldSupplierBuilder.NameAndTypeFieldSupplier<T>
All Implemented Interfaces:
Callable<T>
Enclosing class:
FieldSupplierBuilder

public class FieldSupplierBuilder.NameAndTypeFieldSupplier<T>
extends Object
implements Callable<T>


Constructor Summary
FieldSupplierBuilder.NameAndTypeFieldSupplier()
           
 
Method Summary
<S> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<S>
andOfType(Class<S> type)
          Find a field based on the annotation and field type.
 FieldSupplierBuilder.AnnotationFieldSupplier<T> andWithName(String fieldName)
          Find a field based on the annotation and field name.
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldSupplierBuilder.NameAndTypeFieldSupplier

public FieldSupplierBuilder.NameAndTypeFieldSupplier()
Method Detail

andWithName

public FieldSupplierBuilder.AnnotationFieldSupplier<T> andWithName(String fieldName)
Find a field based on the annotation and field name. E.g. await().until(fieldIn(object).annotatedWith(MyAnnotation.class).andWithName("fieldName"), equalTo(someObject));

Parameters:
fieldName - The type of name of the field
Returns:
The supplier

andOfType

public <S> FieldSupplierBuilder.NameAndAnnotationFieldSupplier<S> andOfType(Class<S> type)
Find a field based on the annotation and field type. E.g. await().until(fieldIn(object).annotatedWith(MyAnnotation.class).andOfType(int.class), equalTo(2));

Parameters:
type - The type of the field
Returns:
The supplier

call

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


Copyright © 2010. All Rights Reserved.