DATACMNS-124 - Added missing package-info.java files.

Polished JavaDocs. Polished MappingContextEvent and added deprecations to it to be cleaned up for 1.3.GA.
This commit is contained in:
Oliver Gierke
2012-01-23 11:26:39 +01:00
parent 5c248983d2
commit b811fa3ea8
25 changed files with 180 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
package org.springframework.data.mapping.model;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
@@ -54,6 +54,30 @@ public class AbstractPersistentPropertyUnitTests {
assertThat(property.getPersistentEntityType().iterator().hasNext(), is(false));
}
@Test
public void foo() {
Field field1 = ReflectionUtils.findField(Bar1.class, "field");
Field field2 = ReflectionUtils.findField(Bar2.class, "field");
assertThat(field1, is(field2));
System.out.println(field1.getType());
System.out.println(ClassTypeInformation.from(Bar1.class).getProperty("field").getType());
System.out.println(ClassTypeInformation.from(Bar2.class).getProperty("field").getType());
}
class Foo<T> {
T field;
}
class Bar1 extends Foo<String> {
}
class Bar2 extends Foo<Object> {
}
@SuppressWarnings("serial")
class TestClassSet extends TreeSet<Object> {
}