MatchCriterion

public enum MatchCriterion

The criteria of method matching to a certain set of requirements, applied to the model message handlers.

Each criterion defines the severity of its violation. Depending on it, the callees may refuse working with the tested methods.

Additionally, upon testing the criteria provide a number of signature mismatches, that may later be used for diagnostic purposes.

Entries

Link copied to clipboard

The criterion, which checks that the method return type is among the expected.

Link copied to clipboard

The criterion for the method parameters to conform the requirements.

Link copied to clipboard

The criterion, which ensures that the method access modifier is among the expected.

Link copied to clipboard

The criterion checking that the tested method throws only allowed exceptions.

Functions

Link copied to clipboard
protected final Optional<SignatureMismatch> createMismatch(Method method, Class<? extends Annotation> annotation)
Creates a mismatch with the passed method and the name as parameters.
Link copied to clipboard
protected final String formatMsg(Array<Object> args)
Link copied to clipboard
protected final SignatureMismatch.Severity severity()
Link copied to clipboard
public static MatchCriterion valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<MatchCriterion> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.