Skip to content

Conversation

@Pankraz76
Copy link
Contributor

@Pankraz76 Pankraz76 commented May 21, 2025

add test assertion to resolve @SuppressWarnings("checkstyle:UnusedLocalVariable")

ref:

@Pankraz76 Pankraz76 changed the title fix missing test assertion add test assertion to resolve @SuppressWarnings("checkstyle:UnusedLocalVariable") May 21, 2025
@Pankraz76 Pankraz76 force-pushed the error-prone-pmd-ArtifactHandlerTest branch 2 times, most recently from 51f7046 to f541e7e Compare May 21, 2025 11:35
@Pankraz76 Pankraz76 marked this pull request as ready for review May 21, 2025 11:35
if (line.startsWith("||")) {
String[] cols = line.split("\\|\\|");
String[] expected = new String[] {
"",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is required

"language",
"added to classpath",
"includesDependencies",
""
Copy link
Contributor Author

@Pankraz76 Pankraz76 May 21, 2025

Choose a reason for hiding this comment

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

this is not required. "foo", works as well.

@Pankraz76 Pankraz76 force-pushed the error-prone-pmd-ArtifactHandlerTest branch from f541e7e to adb73ac Compare May 21, 2025 11:39
// Packaging/Directory is Maven1 remnant!!!
// assertEquals(handler.getPackaging(), packaging, type + " packaging");
assertThat(handler.getPackaging()).isNotEmpty();
assertThat(VALID_PACKAGING_TYPES).contains(packaging);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

resolve UnusedLocalVariable

@Pankraz76 Pankraz76 force-pushed the error-prone-pmd-ArtifactHandlerTest branch from adb73ac to 9f1e7cf Compare May 21, 2025 11:50
@Pankraz76
Copy link
Contributor Author

whats the issue here? is testing not valued?

@Pankraz76
Copy link
Contributor Author

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