jmockdata icon indicating copy to clipboard operation
jmockdata copied to clipboard

普通对象包含含有泛型字段的集合时mock失败

Open meng-taiqian opened this issue 2 years ago • 0 comments

实例代码: `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;
}

}`

meng-taiqian avatar Apr 01 '22 05:04 meng-taiqian