Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Data Builder Pattern Has Been Integrated #17

Merged
merged 4 commits into from
Feb 25, 2023

Conversation

agitrubard
Copy link
Collaborator

Unit, Integration, Controller, and System tests can now automatically generate test data without the need for manual filling, thanks to a library integration. With this integration, we can now extend the TestDataBuilder class to automatically create data.

Example:

public class AbcBuilder extends TestDataBuilder<Abc> {

    public AbcBuilder() {
        super(Abc.class);
    }
    
    public AbcBuilder withXyz(Xyz xyz) { // We can add this method if we want to manually set any data.
        data.setXyz(xyz);
        return this;
    }

}

@agitrubard agitrubard added the feature New feature or request label Feb 24, 2023
@agitrubard agitrubard requested a review from a team as a code owner February 24, 2023 18:20
@agitrubard agitrubard self-assigned this Feb 24, 2023
@skayikci skayikci merged commit 489ca55 into main Feb 25, 2023
@skayikci skayikci deleted the feature/test-data-builder-integration branch February 25, 2023 08:54
@agitrubard agitrubard linked an issue May 23, 2023 that may be closed by this pull request
@agitrubard agitrubard modified the milestone: v1.0.0 May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Data Builder Integration
3 participants