Skip to content

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

Merged
rbygrave merged 4 commits intomasterfrom
feature/TestEntityBuilder
Apr 12, 2026
Merged

Feat: Add test entity builder, ease creation of test entity instances populated with random values#3747
rbygrave merged 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
@rbygrave rbygrave self-assigned this Apr 12, 2026
@rbygrave rbygrave added this to the 16.5.0 milestone Apr 12, 2026
@rbygrave rbygrave merged commit 794f933 into master Apr 12, 2026
1 check passed
@rbygrave rbygrave deleted the feature/TestEntityBuilder branch April 12, 2026 00:46
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.

2 participants