Class CallableWithDescription<V>
- java.lang.Object
-
- dev.aherscu.qa.jgiven.commons.utils.CallableWithDescription<V>
-
- Type Parameters:
V
- the type of output
- All Implemented Interfaces:
DescriptionFormatter.HasDescription
,Callable<V>
public class CallableWithDescription<V> extends Object implements DescriptionFormatter.HasDescription, Callable<V>
Wraps aCallable
with a description.- Author:
- Adrian Herscu
-
-
Constructor Summary
Constructors Constructor Description CallableWithDescription(String description, Callable<V> callable)
-
-
-
Method Detail
-
description
public String description()
- Specified by:
description
in interfaceDescriptionFormatter.HasDescription
- Returns:
- the description text
-
-