Skip to content

TRUNK-6678: Fix JUnit test assertions and improve disabled test documentation#6306

Open
imandeepduhan wants to merge 1 commit into
openmrs:masterfrom
imandeepduhan:TRUNK-6678
Open

TRUNK-6678: Fix JUnit test assertions and improve disabled test documentation#6306
imandeepduhan wants to merge 1 commit into
openmrs:masterfrom
imandeepduhan:TRUNK-6678

Conversation

@imandeepduhan

Copy link
Copy Markdown
Contributor

Updated JUnit test assertions to follow the correct assertEquals(expected, actual) convention and added a descriptive reason to the @disabled annotation. These changes improve test readability, follow JUnit best practices, and make disabled tests easier to understand.

JIRA TICKET : https://openmrs.atlassian.net/browse/TRUNK-6678

@sonarqubecloud

Copy link
Copy Markdown

*/
@Test
@Disabled
@Disabled("Temporarily disabled because it fails when executed with other tests")

@jwnasambu jwnasambu Jul 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good start @imandeepduhan. The assertion order fix is correct.
Kindly the @disabled reason could be more specific "fails when executed with other tests" is close to what the existing TODO comment already says. If you know which tests cause the conflict or what the error message is including that would help whoever eventually fixes it. Not a blocker though.

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