public CommandResultAssert hasFailToPersistError() { Assertions.assertThat(actual.getCommandResult().failedToPersist()).isTrue(); return this; }
public CommandResultAssert hasNoFailToPersistError() { Assertions.assertThat(actual.getCommandResult().failedToPersist()).isFalse(); return this; }
private static CommandResponse prepareCommandResponse(String memberName, CommandResult result) { GfJsonObject content; content = result.getContent(); return new CommandResponse(memberName, getType(result), result.getStatus().getCode(), "1/1", CliMetaData.ANNOTATION_NULL_VALUE, getDebugInfo(), result.getHeader(), content, result.getFooter(), result.failedToPersist(), result.getFileToDownload()); }