public final class Hook
extends java.lang.Object
A Hook is usually created using Cuppa.before(HookFunction),
 Cuppa.after(HookFunction), Cuppa.beforeEach(HookFunction)
 or Cuppa.afterEach(HookFunction) but can be constructed directly.
| Modifier and Type | Field and Description | 
|---|---|
java.util.Optional<java.lang.String> | 
description
An optional description. 
 | 
HookFunction | 
function
A function to be executed (possibly more than once). 
 | 
java.lang.Class<?> | 
testClass
The class that the hook was defined in. 
 | 
HookType | 
type
The type of the hook. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object o)  | 
int | 
hashCode()  | 
java.lang.String | 
toString()  | 
public final HookType type
public final java.lang.Class<?> testClass
public final java.util.Optional<java.lang.String> description
public final HookFunction function