@Test public void determiningPadesUsesFirstSignature() { ValidationConclusion report = new ValidationConclusionBuilder() .addSignatureWithFormat("RANDOM") .addSignatureWithFormat(PADES_SIGNATURE_FORMAT_PREFIX + "some suffix") .build(); assertEquals(NA, resolveContainerType(report)); }
static String resolveContainerType(ValidationConclusion validationConclusion) { return isPades(validationConclusion.getSignatures()) ? PADES_CONTAINER_TYPE : resolveContainerTypeFromSignatureForm(validationConclusion.getSignatureForm()); }
ContainerTypeResolver { static String resolveContainerType(ValidationConclusion validationConclusion) { return isPades(validationConclusion.getSignatures()) ? PADES_CONTAINER_TYPE : resolveContainerTypeFromSignatureForm(validationConclusion.getSignatureForm()); } }
ContainerTypeResolver { static String resolveContainerType(ValidationConclusion validationConclusion) { return isPades(validationConclusion.getSignatures()) ? PADES_CONTAINER_TYPE : resolveContainerTypeFromSignatureForm(validationConclusion.getSignatureForm()); }  }
ContainerTypeResolver { static String resolveContainerType(ValidationConclusion validationConclusion) { return isPades(validationConclusion.getSignatures()) ? PADES_CONTAINER_TYPE : resolveContainerTypeFromSignatureForm(validationConclusion.getSignatureForm()); }   }
ContainerTypeResolver { static String resolveContainerType(ValidationConclusion validationConclusion) { return isPades(validationConclusion.getSignatures()) ? PADES_CONTAINER_TYPE : resolveContainerTypeFromSignatureForm(validationConclusion.getSignatureForm()); }    }