@Test void shouldSerializeContainerError() { ContainerError error = ContainerError.create("SYSTEM:NOT_READY", "Not ready", ContainerError.Kind.RECOVERABLE); Errors.ContainerError proto = ProtoUtil.serializeContainerError(error); assertThat( proto, equalTo( Errors.ContainerError.newBuilder() .setMessage("Not ready") .setKind(Errors.ContainerError.Kind.RECOVERABLE) .setCode("SYSTEM:NOT_READY") .build())); }
static Errors.ContainerError serializeContainerError(ContainerError error) { return Errors.ContainerError.newBuilder() .setCode(error.getCode()) .setKind(serialize(error.getKind())) .setMessage(error.getMessage()) .build(); }
ProtoUtil { static Errors.ContainerError serializeContainerError(ContainerError error) { return Errors.ContainerError.newBuilder() .setCode(error.getCode()) .setKind(serialize(error.getKind())) .setMessage(error.getMessage()) .build(); } }
ProtoUtil { static Errors.ContainerError serializeContainerError(ContainerError error) { return Errors.ContainerError.newBuilder() .setCode(error.getCode()) .setKind(serialize(error.getKind())) .setMessage(error.getMessage()) .build(); } private  ProtoUtil(); }
ProtoUtil { static Errors.ContainerError serializeContainerError(ContainerError error) { return Errors.ContainerError.newBuilder() .setCode(error.getCode()) .setKind(serialize(error.getKind())) .setMessage(error.getMessage()) .build(); } private  ProtoUtil(); static Workflow.WorkflowTemplate serialize(WorkflowTemplate template); }
ProtoUtil { static Errors.ContainerError serializeContainerError(ContainerError error) { return Errors.ContainerError.newBuilder() .setCode(error.getCode()) .setKind(serialize(error.getKind())) .setMessage(error.getMessage()) .build(); } private  ProtoUtil(); static Workflow.WorkflowTemplate serialize(WorkflowTemplate template);  }