@Test @DisplayName("create 'reject with Error' `Ack` instance") void rejectWithError() { Error error = Error .newBuilder() .setType(AcksTest.class.getCanonicalName()) .setMessage("A test error.") .build(); Ack ack = Acks.reject(ID, error); assertIdEquals(ack); assertStatusCase(ack, ERROR); }
public static Ack reject(Message id, Error cause) { checkNotDefaultArg(id); checkNotDefaultArg(cause); Status status = Status .newBuilder() .setError(cause) .build(); return setStatus(id, status); }
Acks { public static Ack reject(Message id, Error cause) { checkNotDefaultArg(id); checkNotDefaultArg(cause); Status status = Status .newBuilder() .setError(cause) .build(); return setStatus(id, status); } }
Acks { public static Ack reject(Message id, Error cause) { checkNotDefaultArg(id); checkNotDefaultArg(cause); Status status = Status .newBuilder() .setError(cause) .build(); return setStatus(id, status); } private  Acks(); }
Acks { public static Ack reject(Message id, Error cause) { checkNotDefaultArg(id); checkNotDefaultArg(cause); Status status = Status .newBuilder() .setError(cause) .build(); return setStatus(id, status); } private  Acks(); static Ack acknowledge(Message id); static Ack reject(Message id, Error cause); static Ack reject(Message id, RejectionEnvelope cause); }
Acks { public static Ack reject(Message id, Error cause) { checkNotDefaultArg(id); checkNotDefaultArg(cause); Status status = Status .newBuilder() .setError(cause) .build(); return setStatus(id, status); } private  Acks(); static Ack acknowledge(Message id); static Ack reject(Message id, Error cause); static Ack reject(Message id, RejectionEnvelope cause);  }