use of uk.co.jemos.podam.test.dto.ValidatedPojoMultipleConstraints in project podam by devopsfolks.
the class ValidatedPojoTest method whenDigitsAndDecimalMinOrDecimalMaxAreAttachedToTheSameFieldPodamShouldUseMinimumRequirement.
@Test
@Title("When the @Digits and @DecimalMin and @DecimalMax applied to the same field, Podam should use minimum requirements")
public void whenDigitsAndDecimalMinOrDecimalMaxAreAttachedToTheSameFieldPodamShouldUseMinimumRequirement() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
ValidatedPojoMultipleConstraints pojo = podamInvocationSteps.whenIInvokeTheFactoryForClass(ValidatedPojoMultipleConstraints.class, podamFactory);
podamValidationSteps.theObjectShouldNotBeNull(pojo);
Validator validator = podamFactorySteps.givenAJavaxValidator();
validatorSteps.thePojoShouldNotViolateAnyValidations(validator, pojo);
}
Aggregations