use of org.simpleflatmapper.reflect.ReflectionService in project SimpleFlatMapper by arnaudroger.
the class ReflectionServiceTest method testClassMetaCache.
@Test
public void testClassMetaCache() {
final ReflectionService reflectionService = ReflectionService.newInstance();
assertSame(reflectionService.getClassMeta(new TypeReference<Tuple2<String, String>>() {
}.getType()), reflectionService.getClassMeta(new TypeReference<Tuple2<String, String>>() {
}.getType()));
assertNotSame(reflectionService.getClassMeta(new TypeReference<Tuple2<String, String>>() {
}.getType()), reflectionService.getClassMeta(new TypeReference<Tuple2<String, Long>>() {
}.getType()));
}
Aggregations