1 16 package net.sf.dozer.util.mapping.propertydescriptor; 17 18 import java.lang.reflect.Method ; 19 import net.sf.dozer.util.mapping.DozerTestBase; 20 import net.sf.dozer.util.mapping.fieldmap.Field; 21 import net.sf.dozer.util.mapping.vo.deep2.Dest; 22 23 26 public class BruteForcePropertyDescriptorTest extends DozerTestBase { 27 28 public void testGetReadMethod() throws Exception { 29 Field field = new Field("destField", "generic"); 30 31 BruteForcePropertyDescriptor pd = new BruteForcePropertyDescriptor(field); 32 Method method = pd.getReadMethod(Dest.class); 33 34 assertNotNull("method should not be null", method); 35 assertEquals("incorrect method found", "getDestField", method.getName()); 36 } 37 } 38 | Popular Tags |