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

New Tests for ProjectMembershipEntity #245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

F4c3hugg3r
Copy link

implemented different tests for equals(), toString() and setId for the ProjectMembershipEntity class

Copy link

sonarcloud bot commented Nov 11, 2024

@astanik astanik changed the title tests for ProjectMembershipEntity New Tests for ProjectMembershipEntity Nov 11, 2024
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use star imports

project1 = new ProjectEntity();
user1 = new UserEntity();
user2 = new UserEntity();
project1.setId("1");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use realistic values provided by de.remsfal.service.TestData

@astanik astanik added the good first issue Good for newcomers label Nov 11, 2024
@astanik astanik linked an issue Nov 11, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete test coverage of ProjectMembershipEntity.java
2 participants