DBZ-1024 Return test assert
This commit is contained in:
parent
0b78f0c31a
commit
ea5c8512b7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user