Skip to content

Commit

Permalink
Merge pull request #982 from Nitish1814/override_assertions
Browse files Browse the repository at this point in the history
made a separate method for assertion
  • Loading branch information
sonalgoyal authored Dec 5, 2024
2 parents d945bcc + 7a45e05 commit 326713f
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ public void validateResults() throws ZinggClientException {
sumHash += hash;
sumCount += count;
}
assertTrue(sumHash == 11843 | sumHash == 11855);
assertTrue(sumCount == 24 | sumCount == 16);


performAssertions(sumHash, sumCount);
}

//override this method
//to assert on different dataset
protected void performAssertions(int sumHash, long sumCount) {
assertTrue(sumHash == 11843 | sumHash == 11855);
assertTrue(sumCount == 24 | sumCount == 16);
}

}

0 comments on commit 326713f

Please sign in to comment.