}
@Test
public void unconstrainedMethod() throws Exception {
Method method = CustomerRepositoryExt.class.getMethod( "updateCustomer", Customer.class );
ExecutableMetaData methodMetaData = beanMetaData.getMetaDataFor(
ExecutableElement.forMethod(
method
)
);
assertFalse( methodMetaData.isCascading() );
assertFalse( methodMetaData.isConstrained() );
assertThat( methodMetaData ).isEmpty();
assertThat( methodMetaData.getCrossParameterConstraints() ).isEmpty();
assertEquals( methodMetaData.unwrapMode(), UnwrapMode.AUTOMATIC );
assertThat( methodMetaData.getParameterMetaData( 0 ).isConstrained() ).isFalse();
assertThat( methodMetaData.getParameterMetaData( 0 ).isCascading() ).isFalse();
assertThat( methodMetaData.getParameterMetaData( 0 ) ).isEmpty();
}