DBZ-1024 Return test assert

This commit is contained in:
Jiri Pechanec 2018-12-07 10:41:42 +01:00 committed by Gunnar Morling
parent 0b78f0c31a
commit ea5c8512b7

View File

@ -633,6 +633,7 @@ protected void assertRecordOffsetAndSnapshotSource(SourceRecord record, boolean
final Boolean sourceLastSnapshotRecord = source.getBoolean(SourceInfo.LAST_SNAPSHOT_RECORD_KEY); final Boolean sourceLastSnapshotRecord = source.getBoolean(SourceInfo.LAST_SNAPSHOT_RECORD_KEY);
if (expectSnapshot) { if (expectSnapshot) {
Assert.assertTrue("Snapshot marker expected in source but not found", sourceSnapshot); Assert.assertTrue("Snapshot marker expected in source but not found", sourceSnapshot);
assertEquals("Last snapshot record marker in source mismatch", expectedLastSnapshotRecord, sourceLastSnapshotRecord);
} }
else { else {
assertNull("Source snapshot marker not expected, but found", sourceSnapshot); assertNull("Source snapshot marker not expected, but found", sourceSnapshot);