use of org.voltdb.messaging.Iv2RepairLogResponseMessage in project voltdb by VoltDB.
the class TestMpPromoteAlgo method makeRealFragResponse.
Iv2RepairLogResponseMessage makeRealFragResponse(long requestId, long sourceHSId, int sequence, int ofTotal, long handle) {
FragmentTaskMessage frag = mock(FragmentTaskMessage.class);
when(frag.getInitiateTask()).thenReturn(mock(Iv2InitiateTaskMessage.class));
Iv2RepairLogResponseMessage m = new Iv2RepairLogResponseMessage(requestId, sequence, ofTotal, handle, handle, frag);
m.m_sourceHSId = sourceHSId;
return m;
}
Aggregations