Skip to content

Feat: Add test entity builder, ease creation of test entity instances populated with random values#3747

Open
rob-bygrave wants to merge 4 commits intomasterfrom
feature/TestEntityBuilder
Open

Feat: Add test entity builder, ease creation of test entity instances populated with random values#3747
rob-bygrave wants to merge 4 commits intomasterfrom
feature/TestEntityBuilder

Conversation

@rob-bygrave
Copy link
Copy Markdown
Contributor

@rob-bygrave rob-bygrave commented Apr 11, 2026

This is part of ebean-test module.

// in test setup somewhere 
Database database = ...
TestEntityBuilder builder = TestEntityBuilder.builder(database).build();

// create a new test instance populated with random values
Customer bean = builder.build(Customer.class);

@rob-bygrave rob-bygrave changed the title Feature/test entity builder Feat: Add test entity builder, ease creation of test entity instances populated with random values Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant