Skip to content

test: refactor XML test to use explicit assertions and clearer structure#10847

Closed
Rian-Ismael wants to merge 1 commit intojenkinsci:masterfrom
Rian-Ismael:master
Closed

test: refactor XML test to use explicit assertions and clearer structure#10847
Rian-Ismael wants to merge 1 commit intojenkinsci:masterfrom
Rian-Ismael:master

Conversation

@Rian-Ismael
Copy link
Contributor

@Rian-Ismael Rian-Ismael commented Jul 16, 2025

Testing done

This change was tested by running the affected test class via IntelliJ and Maven. The test executes successfully, validating that the XML file is read correctly and the expected assertions pass.
No production logic was changed.

Proposed changelog entries

  • Refactor XML configuration test to use explicit assertions and improve clarity.

/label rfe

Proposed changelog category

/label internal

Proposed upgrade guidelines

N/A

Submitter checklist

  • There is automated testing or an explanation as to why this change has no tests.

@comment-ops-bot comment-ops-bot bot added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Jul 22, 2025
@MarkEWaite MarkEWaite added tests This PR adds/removes/updates test cases and removed rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted labels Jul 27, 2025
@MarkEWaite
Copy link
Contributor

The test executes successfully, validating that the XML file is read correctly and the expected assertions pass.

The test that you added fails on Windows and Linux on ci.jenkins.io. Failing tests are a sign that you've not understood the code that you're changing. Please correct the error that causes the test to fail.


@Test
void canReadXml1_0Test() throws IOException {
public void canReadXml1_0WhenFileExists() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

JUnit 5 does not require that the test method is public. Please leave this line unchanged.

Suggested change
public void canReadXml1_0WhenFileExists() throws IOException {
void canReadXml1_0Test() throws IOException {

@MarkEWaite
Copy link
Contributor

Please don't submit pull requests from a branch named "master". It complicates things for reviewers.

Please restore the entire pull request checklist.

@MarkEWaite
Copy link
Contributor

Closing the pull request after a week with no response to the request for changes.

@MarkEWaite MarkEWaite closed this Aug 2, 2025
@comment-ops-bot comment-ops-bot bot added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted tests This PR adds/removes/updates test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants