);
}
@Test
public void testHasConstraintsForMethod() {
CrossParameterDescriptor descriptor = getMethodDescriptor(
CustomerRepository.class,
"bar"
).getCrossParameterDescriptor();
assertFalse(
descriptor.hasConstraints(),
"Method has no cross-parameter constraints."
);
descriptor = getMethodDescriptor(
CustomerRepository.class,
"methodWithCrossParameterConstraint",
DateMidnight.class,
DateMidnight.class
).getCrossParameterDescriptor();
assertTrue(
descriptor.hasConstraints(),
"Method has one cross-parameter constraint."
);
}