Package com.tngtech.jgiven.format
Class POJOAnnotationFormatter
- java.lang.Object
-
- com.tngtech.jgiven.format.POJOAnnotationFormatter
-
- All Implemented Interfaces:
AnnotationArgumentFormatter<POJOFormat>
public class POJOAnnotationFormatter extends java.lang.Object implements AnnotationArgumentFormatter<POJOFormat>
AnnotationArgumentFormatter
that is used by thePOJOFormat
annotation
-
-
Constructor Summary
Constructors Constructor Description POJOAnnotationFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object obj, POJOFormat annotation)
Format a single argument by taking the given annotation into account.
-
-
-
Method Detail
-
format
public java.lang.String format(java.lang.Object obj, POJOFormat annotation)
Description copied from interface:AnnotationArgumentFormatter
Format a single argument by taking the given annotation into account.- Specified by:
format
in interfaceAnnotationArgumentFormatter<POJOFormat>
- Parameters:
obj
- the object to formatannotation
- the annotation the parameter was annotated with- Returns:
- a formatted string
-
-