broke out pkg private classes from TypeDescriptor to improve manageability and testability

This commit is contained in:
Keith Donald
2011-06-03 03:09:05 +00:00
parent 07f985ac91
commit a1b7af5c9c
8 changed files with 593 additions and 475 deletions

View File

@@ -306,6 +306,7 @@ public class TypeDescriptorTests {
TypeDescriptor desc = new TypeDescriptor(genericBean.getClass(), property);
assertEquals(List.class, desc.getType());
assertEquals(Integer.class, desc.getElementType());
assertNotNull(desc.getAnnotation(MethodAnnotation1.class));
}
public static class GenericClass<T> {
@@ -316,7 +317,8 @@ public class TypeDescriptorTests {
public void setProperty(T t) {
}
@MethodAnnotation1
public List<T> getListProperty() {
return null;
}