Skip to content

Populating inherited properties #3

@engtecmat

Description

@engtecmat

Describe the feature

Hi @zhezhangz, thanks for this library.

I'm writing for asking if there's a feature that can populate the properties that inherit from the superclass?

Use Case

public class Animal {
    private String name;
}
public class Person extends Animal {
  private String healthCode;
}
@Test
void test_subtype() throws JsonProcessingException {
  final Person person = PersonModeler.builder().build();

  assertThat(person.getHealthCode()).isNotNull();
  assertThat(person.getName()).isNotNull();
}
Expecting actual not to be null
java.lang.AssertionError: 
Expecting actual not to be null

Possible Solution / Additional Notes

No response

Acknowledgements

  • I may be able to implement this feature
  • This feature will introduce some breaking changes

EasyModeling Version

0.1.0-release

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions