Skip to content

Conversation

@Lemeri123
Copy link
Collaborator

Test methods:
testGetImageIcon: Tests the getImageIcon method to ensure it returns a non-null ImageIcon object and that the returned object matches the expected result.

@sonarqubecloud
Copy link

Copy link
Owner

@josdem josdem left a comment

Choose a reason for hiding this comment

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

Hi @Lemeri123 just small changes before merge, your collaboration is appreciated, you are doing a great job!

when(imageIconBase.getImageIcon()).thenReturn(expectedImageIcon);

// When
ImageIcon result = imageIconBase.getImageIcon();
Copy link
Owner

Choose a reason for hiding this comment

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

This could be var result = imageIconBase.getImageIcon(); please change it

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

class ImageIconBaseTests {
Copy link
Owner

Choose a reason for hiding this comment

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

Following name conventions this class should be named: ImageIconBaseTest please change it

@Lemeri123
Copy link
Collaborator Author

I messed up on my local project and I rebased the branch mistakenly hence undoing all the local changes I made on this branch. So maybe we merge this and make the requested changes locally

@josdem
Copy link
Owner

josdem commented Feb 12, 2025

I messed up on my local project and I rebased the branch mistakenly hence undoing all the local changes I made on this branch. So maybe we merge this and make the requested changes locally

Hi @Lemeri123 , no problem I will merge as it is and we can make the changes later.

@josdem josdem merged commit 0e89e06 into main Feb 12, 2025
3 checks passed
@Lemeri123
Copy link
Collaborator Author

Oh btw @josdem is this your working email address "[email protected]"

@josdem
Copy link
Owner

josdem commented Feb 12, 2025

Oh btw @josdem is this your working email address "[email protected]"

That's my personal email address, this one is for business: [email protected], you can reach me in both address, no problem.

@Lemeri123
Copy link
Collaborator Author

Maybe you could have a look at your email. I sent you an email to your personal email

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.

3 participants