A B C D E F G H I M N O P R S T V W 
All Classes All Packages

A

AbstractValidator<T extends AbstractValidator<T>> - Class in com.mastercard.test.flow.validation
Superclass for processing Validations against Models
AbstractValidator() - Constructor for class com.mastercard.test.flow.validation.AbstractValidator
 
accepted(Violation) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Violation acceptance query
accepting(Predicate<Violation>) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Adds Violation acceptance criteria
actorInfix - Variable in enum com.mastercard.test.flow.validation.MessageHash.Include
A string that can be put after the requester name and before the responder name to make it clearer what messages are included
actual() - Method in class com.mastercard.test.flow.validation.Violation
Comparison accessor
ACTUAL_COST - com.mastercard.test.flow.validation.InheritanceHealth.Phase
Wherein the actual inheritance cost is calculated
add(S) - Method in class com.mastercard.test.flow.validation.graph.DiffGraph
 
ALL - com.mastercard.test.flow.validation.MessageHash.Include
apply(Interaction) - Method in enum com.mastercard.test.flow.validation.MessageHash.Include
 
applyAsInt(S, S) - Method in class com.mastercard.test.flow.validation.graph.CachingDiffDistance
 

B

batchedChecks(Validation) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Extracts Check instances by applying the supplied Validation to the Model, then grouping them up according to the AbstractValidator.batching(int) size
batching(int) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Controls how individual Validation Check instances are batched up to reduce overhead in the downstream test harness
BUILD - com.mastercard.test.flow.validation.InheritanceHealth.Phase
Wherein the flows are constructed

C

CachingDiffDistance<S> - Class in com.mastercard.test.flow.validation.graph
A function that computes the distance between two item, caching intermediate results for performance
CachingDiffDistance(Function<S, String>, BiFunction<String, String, Integer>) - Constructor for class com.mastercard.test.flow.validation.graph.CachingDiffDistance
 
ChainOverlapCheck - Class in com.mastercard.test.flow.validation.check
Checks that the tags are in a maximum of one execution chain
ChainOverlapCheck() - Constructor for class com.mastercard.test.flow.validation.check.ChainOverlapCheck
 
check() - Method in class com.mastercard.test.flow.validation.Check
Produces the result of the check
Check - Class in com.mastercard.test.flow.validation
An individual instance of the validation behaviour
Check(Validation, String, Supplier<Violation>) - Constructor for class com.mastercard.test.flow.validation.Check
 
checking(Model) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Specifies the Model to validate
checks(Model) - Method in class com.mastercard.test.flow.validation.check.ChainOverlapCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.DependencyChronologyCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.DependencyInclusionCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.DependencyLoopCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.FlowPairCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.InteractionIdentityCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.MessageSharingCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.ModelTaggingCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.ModelUniquenessCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.ReflectiveModelTaggingCheck
 
checks(Model) - Method in class com.mastercard.test.flow.validation.check.ResultTagCheck
 
checks(Model) - Method in interface com.mastercard.test.flow.validation.Validation
Produces the validation checks that should be processed to assert Model validity
com.mastercard.test.flow.validation - package com.mastercard.test.flow.validation
Model validation utilities
com.mastercard.test.flow.validation.check - package com.mastercard.test.flow.validation.check
Model validation behaviours
com.mastercard.test.flow.validation.graph - package com.mastercard.test.flow.validation.graph
Minimum spanning tree utilities
creationCost(ToIntFunction<Flow>) - Method in class com.mastercard.test.flow.validation.InheritanceHealth
Controls how the creation cost of a Flow is calculated

D

DAG<S> - Class in com.mastercard.test.flow.validation.graph
A Directed Acyclic Graph, or tree.
DAG(S) - Constructor for class com.mastercard.test.flow.validation.graph.DAG
 
defaultChecks() - Static method in class com.mastercard.test.flow.validation.AbstractValidator
The suggested set of checks to subject your Models to
DependencyChronologyCheck - Class in com.mastercard.test.flow.validation.check
Checks that dependencies within a single Flow do not violate causality. i.e.: that they copy data from earlier messages to later messages and not vice versa.
DependencyChronologyCheck() - Constructor for class com.mastercard.test.flow.validation.check.DependencyChronologyCheck
 
DependencyInclusionCheck - Class in com.mastercard.test.flow.validation.check
Checks that the dependency flows are actually part of the system model
DependencyInclusionCheck() - Constructor for class com.mastercard.test.flow.validation.check.DependencyInclusionCheck
 
DependencyLoopCheck - Class in com.mastercard.test.flow.validation.check
Checks that we don't have any dependency loops.
DependencyLoopCheck() - Constructor for class com.mastercard.test.flow.validation.check.DependencyLoopCheck
 
derivationCost(ToIntBiFunction<Flow, Flow>) - Method in class com.mastercard.test.flow.validation.InheritanceHealth
Controls how the derivation cost of a Flow is calculated
details() - Method in class com.mastercard.test.flow.validation.Violation
Produces a human-readable description of the violation
diffDistance(String, String) - Static method in class com.mastercard.test.flow.validation.InheritanceHealth
 
DiffGraph<S> - Class in com.mastercard.test.flow.validation.graph
Represents a graph of items that can be compared against each other and the differences quantified
DiffGraph(ToIntBiFunction<S, S>) - Constructor for class com.mastercard.test.flow.validation.graph.DiffGraph
 
digest(String) - Method in class com.mastercard.test.flow.validation.MessageHash
Sets the hashing algorithm name.

E

ERROR_TAG - Static variable in class com.mastercard.test.flow.validation.check.ResultTagCheck
Added to Flows that suffer some non-assertion error
expect(Model, String...) - Method in class com.mastercard.test.flow.validation.InheritanceHealth
Computes inheritance health and compares against expected value
expect(Model, String...) - Method in class com.mastercard.test.flow.validation.MessageHash
Computes the actual hashes and compares them against the supplied expectations
expected() - Method in class com.mastercard.test.flow.validation.Violation
Comparison accessor
explanation() - Method in class com.mastercard.test.flow.validation.check.ChainOverlapCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.DependencyChronologyCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.DependencyInclusionCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.DependencyLoopCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.FlowPairCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.InteractionIdentityCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.MessageSharingCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.ModelTaggingCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.ModelUniquenessCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.ReflectiveModelTaggingCheck
 
explanation() - Method in class com.mastercard.test.flow.validation.check.ResultTagCheck
 
explanation() - Method in interface com.mastercard.test.flow.validation.Validation
Defines an explanation for the validation's rationale.

F

FAIL_TAG - Static variable in class com.mastercard.test.flow.validation.check.ResultTagCheck
Added to Flows and Interactions that fail assertions
flatten(Flow) - Static method in class com.mastercard.test.flow.validation.InheritanceHealth
Dumps a flow's data to a string such that it can be usefully compared
FlowIdentityCheck - Class in com.mastercard.test.flow.validation.check
Checks that all Flows in a Model have a unique identity
FlowIdentityCheck() - Constructor for class com.mastercard.test.flow.validation.check.FlowIdentityCheck
 
FlowPairCheck - Class in com.mastercard.test.flow.validation.check
Convenience superclass for validation checks that compare pairs of flows
FlowPairCheck(String, String) - Constructor for class com.mastercard.test.flow.validation.check.FlowPairCheck
 
format(BiFunction<String, IntSummaryStatistics, String>) - Method in class com.mastercard.test.flow.validation.MessageHash
Defines how the digest output is formatted.

G

getMaximum() - Method in class com.mastercard.test.flow.validation.Histograph
 
getMinimum() - Method in class com.mastercard.test.flow.validation.Histograph
 
graph(Map<Integer, Integer>) - Method in class com.mastercard.test.flow.validation.Histograph
 

H

hashing(Actor, MessageHash.Include) - Method in class com.mastercard.test.flow.validation.MessageHash
Adds a comparison to hash requests to and/or responses from a particular Actor
hashing(Actor, MessageHash.Include, Consumer<Message>) - Method in class com.mastercard.test.flow.validation.MessageHash
Adds a comparison to hash requests to and/or responses from a particular Actor, while masking out dynamic fields that should not be included in the hash.
hashing(String, Predicate<Flow>, Predicate<Interaction>, Function<Interaction, Stream<Message>>, Function<Message, byte[]>) - Method in class com.mastercard.test.flow.validation.MessageHash
Adds a comparison to hash some subset of the messages in the model
hashingEverything() - Method in class com.mastercard.test.flow.validation.MessageHash
Adds a comparison that hashes all message content
Histograph - Class in com.mastercard.test.flow.validation
Produces text-formatted histogram plots.
Histograph(int, int, int) - Constructor for class com.mastercard.test.flow.validation.Histograph
 
humanReadableByteCount(long) - Static method in class com.mastercard.test.flow.validation.MessageHash
Formats a byte count in a human-friendly way.

I

InheritanceHealth - Class in com.mastercard.test.flow.validation
Provides a mechanism by which the inheritance structure of the Flows in a system Model can be monitored.
InheritanceHealth(int, int, int, BiConsumer<String, String>) - Constructor for class com.mastercard.test.flow.validation.InheritanceHealth
 
InheritanceHealth.Phase - Enum in com.mastercard.test.flow.validation
The phases of inheritance health checking
InteractionIdentityCheck - Class in com.mastercard.test.flow.validation.check
Checks that interactions within a Flow are uniquely addressable
InteractionIdentityCheck() - Constructor for class com.mastercard.test.flow.validation.check.InteractionIdentityCheck
 

M

MessageHash - Class in com.mastercard.test.flow.validation
Provides a mechanism by which changes to message content can be detected.
MessageHash(BiConsumer<String, String>) - Constructor for class com.mastercard.test.flow.validation.MessageHash
 
MessageHash.Include - Enum in com.mastercard.test.flow.validation
Convenient access to Interaction Messages
MessageSharingCheck - Class in com.mastercard.test.flow.validation.check
Ensures that all Interactions have unique message instances.
MessageSharingCheck() - Constructor for class com.mastercard.test.flow.validation.check.MessageSharingCheck
 
minimumSpanningTree(S) - Method in class com.mastercard.test.flow.validation.graph.DiffGraph
Finds the minimum spanning tree (MST) of the items
model() - Method in class com.mastercard.test.flow.validation.AbstractValidator
Model accessor
MODEL_TAGS_FIELD_NAME - Static variable in class com.mastercard.test.flow.validation.check.ReflectiveModelTaggingCheck
The name of the public static final TaggedGroup field that lazily-constructed model types are assumed to have
ModelTaggingCheck - Class in com.mastercard.test.flow.validation.check
Checks that models correctly report the tags of their flows.
ModelTaggingCheck() - Constructor for class com.mastercard.test.flow.validation.check.ModelTaggingCheck
 
ModelUniquenessCheck - Class in com.mastercard.test.flow.validation.check
Checks that all Model have a unique title
ModelUniquenessCheck() - Constructor for class com.mastercard.test.flow.validation.check.ModelUniquenessCheck
 

N

name() - Method in class com.mastercard.test.flow.validation.check.ChainOverlapCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.DependencyChronologyCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.DependencyInclusionCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.DependencyLoopCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.FlowPairCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.InteractionIdentityCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.MessageSharingCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.ModelTaggingCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.ModelUniquenessCheck
 
name() - Method in class com.mastercard.test.flow.validation.Check
Defines a name for the check.
name() - Method in class com.mastercard.test.flow.validation.check.ReflectiveModelTaggingCheck
 
name() - Method in class com.mastercard.test.flow.validation.check.ResultTagCheck
 
name() - Method in interface com.mastercard.test.flow.validation.Validation
Defines a name for the validation.

O

offender(Flow, Interaction...) - Method in class com.mastercard.test.flow.validation.Violation
Adds the model data that provoked the violation
offenders() - Method in class com.mastercard.test.flow.validation.Violation
Gets the offending model data
offenderString() - Method in class com.mastercard.test.flow.validation.Violation
Produces a human-readable dump of the model data that provoked the violation
OPTIMAL_COST - com.mastercard.test.flow.validation.InheritanceHealth.Phase
Wherein the optimal inheritance cost is calculated
OPTIMISE - com.mastercard.test.flow.validation.InheritanceHealth.Phase
Wherein the optimal inheritance structure is found

P

parent() - Method in class com.mastercard.test.flow.validation.graph.DAG
 
PASS_TAG - Static variable in class com.mastercard.test.flow.validation.check.ResultTagCheck
Added to Flows and Interactions that pass assertions
progress(InheritanceHealth.Phase, BiConsumer<Flow, Float>) - Method in class com.mastercard.test.flow.validation.InheritanceHealth
Adds a progress listener

R

ReflectiveModelTaggingCheck - Class in com.mastercard.test.flow.validation.check
Checks that model implementations that offer reflective access to model tagging information do so in an accurate manner
ReflectiveModelTaggingCheck() - Constructor for class com.mastercard.test.flow.validation.check.ReflectiveModelTaggingCheck
 
REQUESTS - com.mastercard.test.flow.validation.MessageHash.Include
Interaction.request() Messages are included in the hash
RESPONSES - com.mastercard.test.flow.validation.MessageHash.Include
Interaction.response() Messages are included in the hash
ResultTagCheck - Class in com.mastercard.test.flow.validation.check
Checks that the tags that we use to signal flow outcome in execution reports are not already present on Flows
ResultTagCheck() - Constructor for class com.mastercard.test.flow.validation.check.ResultTagCheck
 

S

self() - Method in class com.mastercard.test.flow.validation.AbstractValidator
Typesafe self-reference
SKIP_TAG - Static variable in class com.mastercard.test.flow.validation.check.ResultTagCheck
Added to Flows and Interactions that are not exercised in the test
stringify(S) - Method in class com.mastercard.test.flow.validation.graph.CachingDiffDistance
 

T

TAG_PREFIX - Static variable in class com.mastercard.test.flow.validation.check.ChainOverlapCheck
The prefix of chain tags
toString() - Method in class com.mastercard.test.flow.validation.graph.DAG
 
TraceUniquenessCheck - Class in com.mastercard.test.flow.validation.check
Checks that all Flows in a Model have a unique trace
TraceUniquenessCheck() - Constructor for class com.mastercard.test.flow.validation.check.TraceUniquenessCheck
 
traverse(Consumer<DAG<S>>) - Method in class com.mastercard.test.flow.validation.graph.DAG
Recurses over the DAG structure

V

validation() - Method in class com.mastercard.test.flow.validation.Check
Accessor for the Validation that produced this check
validation() - Method in class com.mastercard.test.flow.validation.Violation
Parent accessor
Validation - Interface in com.mastercard.test.flow.validation
A validation behaviour that can be applied to a Model or constituents thereof
validations() - Method in class com.mastercard.test.flow.validation.AbstractValidator
Produces the validation checks that should be performed
value() - Method in class com.mastercard.test.flow.validation.graph.DAG
 
valueOf(String) - Static method in enum com.mastercard.test.flow.validation.InheritanceHealth.Phase
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mastercard.test.flow.validation.MessageHash.Include
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mastercard.test.flow.validation.InheritanceHealth.Phase
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mastercard.test.flow.validation.MessageHash.Include
Returns an array containing the constants of this enum type, in the order they are declared.
violation(Flow, Flow) - Method in class com.mastercard.test.flow.validation.check.FlowIdentityCheck
 
violation(Flow, Flow) - Method in class com.mastercard.test.flow.validation.check.FlowPairCheck
Implement this with your pair-checking logic
violation(Flow, Flow) - Method in class com.mastercard.test.flow.validation.check.TraceUniquenessCheck
 
Violation - Class in com.mastercard.test.flow.validation
The result of an unsuccessful Check
Violation(Validation, String) - Constructor for class com.mastercard.test.flow.validation.Violation
Constructs a new Violation that signals a general failure
Violation(Validation, String, String, String) - Constructor for class com.mastercard.test.flow.validation.Violation
Constructs a new Violation that signals an expected-equality mismatch

W

with(Validation...) - Method in class com.mastercard.test.flow.validation.AbstractValidator
Adds checks to be performed
withChild(S) - Method in class com.mastercard.test.flow.validation.graph.DAG
Adds a child to this tree
withMSTListener(BiConsumer<S, S>) - Method in class com.mastercard.test.flow.validation.graph.DiffGraph
 
A B C D E F G H I M N O P R S T V W 
All Classes All Packages