use of org.apache.ratis.protocol.ClientInvocationId in project incubator-ratis by apache.
the class RetryCacheTestUtil method assertFailure.
public static void assertFailure(RetryCache cache, LogEntryProto logEntry, boolean isFailed) {
if (logEntry.hasStateMachineLogEntry()) {
final ClientInvocationId invocationId = ClientInvocationId.valueOf(logEntry.getStateMachineLogEntry());
Assert.assertEquals(isFailed, get(cache, invocationId).isFailed());
}
}
Aggregations