@SpecAssertion(section = "8.1.1.5", id = "a"),
@SpecAssertion(section = "8.1.1.5", id = "c"),
@SpecAssertion(section = "8.1.1.5", id = "f")
})
public void testXmlMethodConfigurationApplied() throws Exception {
MethodDescriptor descriptor = TestUtil.getMethodDescriptor( CustomerRepository.class, "listCustomers" );
assertNotNull( descriptor, "the specified method should be configured in xml" );
assertTrue( descriptor.hasConstrainedReturnValue() );
assertFalse( descriptor.hasConstrainedParameters() );
descriptor = TestUtil.getMethodDescriptor( CustomerRepository.class, "findCustomer", String.class );
assertNotNull( descriptor, "the specified method should be configured in xml" );
assertTrue( descriptor.hasConstrainedReturnValue() );
assertTrue( descriptor.hasConstrainedParameters() );
descriptor = TestUtil.getMethodDescriptor( CustomerRepository.class, "isCustomer", String.class );
assertNotNull( descriptor, "the specified method should be configured in xml" );
assertFalse( descriptor.hasConstrainedReturnValue() );
assertTrue( descriptor.hasConstrainedParameters() );
}