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

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

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


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

Constructor Detail

FieldSupplierBuilder.NameAndAnnotationFieldSupplier

public FieldSupplierBuilder.NameAndAnnotationFieldSupplier()
Method Detail

andWithName

public FieldSupplierBuilder.AnnotationFieldSupplier<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

andAnnotatedWith

public FieldSupplierBuilder.NameFieldSupplier<T> andAnnotatedWith(Class<? extends Annotation> annotationType)
Find a field based on the type and an annotation. E.g. await().until(fieldIn(object).ofType(int.class).andAnnotatedWith(MyAnnotation.class), equalTo(2));

Parameters:
annotationType - The name of the field
Returns:
The supplier

call

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


Copyright © 2010-2012. All Rights Reserved.