public void assertCycleFragmentCompleted(long timeoutMillis) {
assertCycleFragmentCompleted(timeoutMillis, null, null);
}
public void assertCycleFragmentCompleted(long timeoutMillis, ViewResultModel expectedFullResult, ViewDeltaResultModel expectedDeltaResult) {
CycleFragmentCompletedCall call;
try {
call = getCycleFragmentCompleted(timeoutMillis);
} catch (Exception e) {
throw new AssertionError("Expected cycleFragmentCompleted call error: " + e.getMessage());
}
if (expectedFullResult != null) {
assertEquals(expectedFullResult, call.getFullFragment());
}
if (expectedDeltaResult != null) {
assertEquals(expectedDeltaResult, call.getDeltaFragment());
}
}