jmockdata
jmockdata copied to clipboard
普通对象包含含有泛型字段的集合时mock失败
实例代码: `public class TestJMockData {
@Test
public void testGeneric() {
final GeneralEntity entity = JMockData.mock(GeneralEntity.class);
Assertions.assertNotNull(entity);
}
} class GeneralEntity{ private List<GenericEntity<String>> rows;
public List<GenericEntity<String>> getRows() {
return rows;
}
public void setRows(List<GenericEntity<String>> rows) {
this.rows = rows;
}
}
class GenericEntity<T> { private T key;
public T getKey() {
return key;
}
public void setKey(T key) {
this.key = key;
}
}`