Skip to content

Fix reversed assertEquals parameter order in Long modification tests #237

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

Merged
merged 2 commits into from
Jun 24, 2025

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 23, 2025

Summary

  • Fixed incorrect parameter order in assertEquals calls in Long modification tests
  • Ensures the expected value is the first parameter and actual value is the second parameter, following JUnit conventions

Changes

  • Fixed reversed assertEquals calls in:
    • src/test/java/de/rub/nds/modifiablevariable/mlong/LongAddModificationTest.java
    • src/test/java/de/rub/nds/modifiablevariable/mlong/LongExplicitValueModificationTest.java
  • Added 'L' suffix to numeric literals to ensure proper Long type matching

Related Issue

Related to tls-attacker/TLS-Attacker-Development#1321

Test Plan

  • All existing tests still pass
  • No functional changes, only parameter order corrections in test assertions
  • Code formatting applied via mvn spotless:apply

ic0ns added 2 commits June 23, 2025 21:37
Fixed incorrect parameter order in assertEquals calls where the actual value
was placed before the expected value. The JUnit convention expects the
expected value as the first parameter.

Added 'L' suffix to numeric literals to ensure proper Long type matching.

Related to tls-attacker/TLS-Attacker-Development#1321
@ic0ns ic0ns merged commit 751c2d5 into main Jun 24, 2025
12 checks passed
@ic0ns ic0ns deleted the fix-reversed-asserts-issue-1321 branch July 1, 2025 05:42
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.

1 participant