Skip to content

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

Description

@meng-taiqian

实例代码:
`public class TestJMockData {

@Test
public void testGeneric() {
    final GeneralEntity entity = JMockData.mock(GeneralEntity.class);
    Assertions.assertNotNull(entity);
}

}
class GeneralEntity{
private List<GenericEntity> rows;

public List<GenericEntity<String>> getRows() {
    return rows;
}

public void setRows(List<GenericEntity<String>> rows) {
    this.rows = rows;
}

}

class GenericEntity {
private T key;

public T getKey() {
    return key;
}

public void setKey(T key) {
    this.key = key;
}

}`

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions