@Test public void toSignatureValueNullArrayTest() { SignatureValueDTO signatureValueDTO = new SignatureValueDTO(SignatureAlgorithm.RSA_SHA256, null); SignatureValue signatureValue = DTOConverter.toSignatureValue(signatureValueDTO); assertEquals(signatureValueDTO.getAlgorithm(), signatureValue.getAlgorithm()); assertNull(signatureValueDTO.getValue()); assertEquals(signatureValueDTO.hashCode(), signatureValue.hashCode()); }
public static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO) { if (signatureValueDTO != null) { return new SignatureValue(signatureValueDTO.getAlgorithm(), signatureValueDTO.getValue()); } return null; }
DTOConverter { public static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO) { if (signatureValueDTO != null) { return new SignatureValue(signatureValueDTO.getAlgorithm(), signatureValueDTO.getValue()); } return null; } }
DTOConverter { public static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO) { if (signatureValueDTO != null) { return new SignatureValue(signatureValueDTO.getAlgorithm(), signatureValueDTO.getValue()); } return null; }  }
DTOConverter { public static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO) { if (signatureValueDTO != null) { return new SignatureValue(signatureValueDTO.getAlgorithm(), signatureValueDTO.getValue()); } return null; }  static ToBeSigned toToBeSigned(ToBeSignedDTO toBeSignedDTO); static ToBeSignedDTO toToBeSignedDTO(ToBeSigned toBeSigned); static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO); static SignatureValueDTO toSignatureValueDTO(SignatureValue signatureValue); static Digest toDigest(DigestDTO digestDTO); static DigestDTO toDigestDTO(Digest digest); }
DTOConverter { public static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO) { if (signatureValueDTO != null) { return new SignatureValue(signatureValueDTO.getAlgorithm(), signatureValueDTO.getValue()); } return null; }  static ToBeSigned toToBeSigned(ToBeSignedDTO toBeSignedDTO); static ToBeSignedDTO toToBeSignedDTO(ToBeSigned toBeSigned); static SignatureValue toSignatureValue(SignatureValueDTO signatureValueDTO); static SignatureValueDTO toSignatureValueDTO(SignatureValue signatureValue); static Digest toDigest(DigestDTO digestDTO); static DigestDTO toDigestDTO(Digest digest);  }