use of io.dropwizard.jersey.params.NonEmptyStringParam in project dropwizard by dropwizard.
the class ParamValidatorUnwrapperTest method failsWithInvalidNonEmptyStringParam.
@Test
public void failsWithInvalidNonEmptyStringParam() {
final Example example = new Example();
example.name = new NonEmptyStringParam("hello");
final Set<ConstraintViolation<Example>> validate = validator.validate(example);
assertThat(validate).hasSize(1);
}
Aggregations