Skip to content

Commit

Permalink
Minor: change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lkancode committed Aug 7, 2017
1 parent aa3254b commit 561f783
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public void validate(ReadState readState) {
if (Float.compare(actualChangePercent, allowableVariancePercent) > 0) {
throw new ValidationException("RecordCountVarianceValidator for type " + typeName
+ " failed. Actual variance: " + actualChangePercent + "%; Allowed variance: "
+ allowableVariancePercent + "%; current cycle record count: " + latestCardinality
+ "; previous cycle record count: " + previousCardinality);
+ allowableVariancePercent + "%; previous cycle record count: " + previousCardinality
+ "; current cycle record count: " + latestCardinality);

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ public void populate(WriteState newState) throws Exception {
Assert.fail();
} catch (ValidationException expected) {
Assert.assertEquals(1, expected.getIndividualFailures().size());
// System.out.println("Message:
// "+expected.getIndividualFailures().get(0).getMessage());
System.out.println("Message:"+expected.getIndividualFailures().get(0).getMessage());
Assert.assertTrue(expected.getIndividualFailures().get(0).getMessage()
.startsWith("RecordCountVarianceValidator for type TypeWithPrimaryKey failed."));
}
Expand Down Expand Up @@ -96,9 +95,8 @@ public void populate(WriteState newState) throws Exception {
});
Assert.fail();
} catch (ValidationException expected) {
System.out.println("Message:"+expected.getIndividualFailures().get(0).getMessage());
Assert.assertEquals(1, expected.getIndividualFailures().size());
// System.out.println("Message:
// "+expected.getIndividualFailures().get(0).getMessage());
Assert.assertTrue(expected.getIndividualFailures().get(0).getMessage()
.startsWith("RecordCountVarianceValidator for type TypeWithPrimaryKey failed."));
}
Expand Down

0 comments on commit 561f783

Please sign in to comment.