.check();
fail("Expected EquivalenceAssertionError");
}
catch (EquivalenceAssertionError e) {
assertExpectedFailures(e,
new PairCheckFailure(NOT_LESS_THAN, 0, 0, 1, 1, 0, 0),
new PairCheckFailure(NOT_GREATER_THAN, 1, 0, 0, 0, 0, 1)
);
}
try {
comparisonTester()
.addLesserGroup("bob")
.addGreaterGroup("alice")
.check();
fail("Expected EquivalenceAssertionError");
}
catch (EquivalenceAssertionError e) {
assertExpectedFailures(e,
new PairCheckFailure(NOT_LESS_THAN, 0, 0, "bob", 1, 0, "alice"),
new PairCheckFailure(NOT_GREATER_THAN, 1, 0, "alice", 0, 0, "bob")
);
}
try {
comparisonTester()
.addLesserGroup(1)
.addGreaterGroup(0, 0)
.check();
fail("Expected EquivalenceAssertionError");
}
catch (EquivalenceAssertionError e) {
assertExpectedFailures(e,
new PairCheckFailure(NOT_LESS_THAN, 0, 0, 1, 1, 0, 0),
new PairCheckFailure(NOT_GREATER_THAN, 1, 0, 0, 0, 0, 1),
new PairCheckFailure(NOT_LESS_THAN, 0, 0, 1, 1, 1, 0),
new PairCheckFailure(NOT_GREATER_THAN, 1, 1, 0, 0, 0, 1)
);
}
try {
comparisonTester()
.addLesserGroup("bob")
.addGreaterGroup("alice", "alice")
.check();
fail("Expected EquivalenceAssertionError");
}
catch (EquivalenceAssertionError e) {
assertExpectedFailures(e,
new PairCheckFailure(NOT_LESS_THAN, 0, 0, "bob", 1, 0, "alice"),
new PairCheckFailure(NOT_GREATER_THAN, 1, 0, "alice", 0, 0, "bob"),
new PairCheckFailure(NOT_LESS_THAN, 0, 0, "bob", 1, 1, "alice"),
new PairCheckFailure(NOT_GREATER_THAN, 1, 1, "alice", 0, 0, "bob")
);
}
}