Skip to content

feat: Created unit tests for employee and manager classes - Lesson 15 #490

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

Closed
wants to merge 1 commit into from

Conversation

marleomac3
Copy link
Contributor

No description provided.


@Test
public void testGetEmployee() {
// Arange
Copy link
Contributor

Choose a reason for hiding this comment

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

Arrange

@Test
public void testGetEmployeeCount() {
// Assert
assertThat(employeeManager.getEmployeeCount()).isNotNull();
Copy link
Contributor

Choose a reason for hiding this comment

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

This test can be more robust. You should check the count, add or remove an employee, then check the new count.

@marleomac3 marleomac3 deleted the lj-lesson-15 branch November 4, 2024 01:49
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