}
this.wantedCount = wantedNumberOfInvocations;
}
public void verify(VerificationData data) {
MissingInvocationChecker missingInvocation = new MissingInvocationChecker();
AtLeastXNumberOfInvocationsChecker numberOfInvocations = new AtLeastXNumberOfInvocationsChecker();
if (wantedCount == 1) {
missingInvocation.check(data.getAllInvocations(), data.getWanted());
}
numberOfInvocations.check(data.getAllInvocations(), data.getWanted(), wantedCount);
}