@Test void testPreventPossibleNullValuesNoResult() { AttemptAuditEventResult source = makeMinimalAttemptAuditEventResult(null); underTest.convert(source); }
public AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source) { AuditProto.AttemptAuditEventResult.Builder builder = builderProvider.getNewAttemptAuditEventResultBuilder() .setId(source.getId()) .setResultCode(source.getResultCode()); doIfTrue(source.getResultMessage(), StringUtils::isNotEmpty, builder::setResultMessage); updateResultEventData(builder, source.getResultEventData()); return builder.build(); }
AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter { public AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source) { AuditProto.AttemptAuditEventResult.Builder builder = builderProvider.getNewAttemptAuditEventResultBuilder() .setId(source.getId()) .setResultCode(source.getResultCode()); doIfTrue(source.getResultMessage(), StringUtils::isNotEmpty, builder::setResultMessage); updateResultEventData(builder, source.getResultEventData()); return builder.build(); } }
AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter { public AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source) { AuditProto.AttemptAuditEventResult.Builder builder = builderProvider.getNewAttemptAuditEventResultBuilder() .setId(source.getId()) .setResultCode(source.getResultCode()); doIfTrue(source.getResultMessage(), StringUtils::isNotEmpty, builder::setResultMessage); updateResultEventData(builder, source.getResultEventData()); return builder.build(); } AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter(Map<Class, AttemptAuditEventResultBuilderUpdater> builderUpdaters,
                    AttemptAuditEventResultBuilderProvider builderProvider); }
AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter { public AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source) { AuditProto.AttemptAuditEventResult.Builder builder = builderProvider.getNewAttemptAuditEventResultBuilder() .setId(source.getId()) .setResultCode(source.getResultCode()); doIfTrue(source.getResultMessage(), StringUtils::isNotEmpty, builder::setResultMessage); updateResultEventData(builder, source.getResultEventData()); return builder.build(); } AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter(Map<Class, AttemptAuditEventResultBuilderUpdater> builderUpdaters,
                    AttemptAuditEventResultBuilderProvider builderProvider); AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source); }
AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter { public AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source) { AuditProto.AttemptAuditEventResult.Builder builder = builderProvider.getNewAttemptAuditEventResultBuilder() .setId(source.getId()) .setResultCode(source.getResultCode()); doIfTrue(source.getResultMessage(), StringUtils::isNotEmpty, builder::setResultMessage); updateResultEventData(builder, source.getResultEventData()); return builder.build(); } AttemptAuditEventResultToGrpcAttemptAuditEventResultConverter(Map<Class, AttemptAuditEventResultBuilderUpdater> builderUpdaters,
                    AttemptAuditEventResultBuilderProvider builderProvider); AuditProto.AttemptAuditEventResult convert(AttemptAuditEventResult source);  }