use of org.hibernate.validator.test.internal.metadata.CustomerRepositoryExt in project hibernate-validator by hibernate.
the class ExecutableMetaDataTest method getKindForConstructor.
@Test
public void getKindForConstructor() throws Exception {
Constructor<CustomerRepositoryExt> constructor = CustomerRepositoryExt.class.getConstructor(String.class);
ExecutableMetaData constructorMetaData = beanMetaData.getMetaDataFor(constructor).get();
assertThat(constructorMetaData.getKind()).isEqualTo(ElementKind.CONSTRUCTOR);
}
use of org.hibernate.validator.test.internal.metadata.CustomerRepositoryExt in project hibernate-validator by hibernate.
the class ExecutableMetaDataTest method getIdentifierForConstructor.
@Test
public void getIdentifierForConstructor() throws Exception {
Constructor<CustomerRepositoryExt> constructor = CustomerRepositoryExt.class.getConstructor(String.class);
ExecutableMetaData constructorMetaData = beanMetaData.getMetaDataFor(constructor).get();
assertThat(constructorMetaData.getSignatures()).containsOnly(new Signature("CustomerRepositoryExt", String.class));
}
use of org.hibernate.validator.test.internal.metadata.CustomerRepositoryExt in project hibernate-validator by hibernate.
the class ExecutableMetaDataTest method getNameOfConstructor.
@Test
public void getNameOfConstructor() throws Exception {
Constructor<CustomerRepositoryExt> constructor = CustomerRepositoryExt.class.getConstructor(String.class);
ExecutableMetaData constructorMetaData = beanMetaData.getMetaDataFor(constructor).get();
assertThat(constructorMetaData.getName()).isEqualTo(constructor.getDeclaringClass().getSimpleName());
}
use of org.hibernate.validator.test.internal.metadata.CustomerRepositoryExt in project hibernate-validator by hibernate.
the class ExecutableMetaDataTest method getTypeForConstructor.
@Test
public void getTypeForConstructor() throws Exception {
Constructor<CustomerRepositoryExt> constructor = CustomerRepositoryExt.class.getConstructor(String.class);
ExecutableMetaData constructorMetaData = beanMetaData.getMetaDataFor(constructor).get();
assertThat(constructorMetaData.getType()).isEqualTo(CustomerRepositoryExt.class);
}
Aggregations