Modifier and Type | Required Element and Description |
---|---|
Class<?> |
checkerSpecificationType
The Checker specification type with check-methods that must be used with the annotated fail-method.
|
Class<? extends FailFastException> |
failExceptionType
Type of exception to throw on failure.
|
String |
failMessageArguments
Comma-separated list of ids of checker-call and failer-call arguments supplied by either user or implementation.
|
String |
failMessageFormat
Exception message formatting string for thrown exception.
|
public abstract Class<?> checkerSpecificationType
public abstract Class<? extends FailFastException> failExceptionType
public abstract String failMessageFormat
failMessageArguments is used to produce an Object[] with this.
An example could be "%s: %s(%s) and %s(%s) are NOT equals".
public abstract String failMessageArguments
This list determines the order and content of an Object[] used with failMessageFormat.
Checker-call argument ids are cu0, cu1, cu2, ... e.g. cu0 being caller, cu1 being referenceA
Failer-call argument ids are fu0, fu1, fu2, ... e.g. fu0 being caller, fu1 being "referenceA"
An example could be "cu0,fu1,cu1,fu2,cu2" to map caller and 2 arguments (both name and value) to failMessageFormat
Checker-implementation argument ids are cx0, cx1, cx2, ... e.g. cx0 being default value used in checker
Failer-implementation argument ids are fx0, fx1, cx2, ... e.g. fx0 being current time supplied by failer
The MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.