Skip to content
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

[ELY-2685] Replace assert in PasswordBasedEncryptionUtilTest with a p… #2009

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

ericrleung
Copy link
Contributor

Assert.assertTrue("Elytron in PB compatible mode failed", decrypted.equals(secret));
Assert.assertTrue("PicketBox encrypted, Elytron decrypted in compatible mode, failed", crossDecrypted.equals(secret));
Assert.assertTrue("Elytron in compatible mode encrypted, PicketBox encrypted must be the same", pbGenerated.equals(encrypted));
Assert.assertEquals("Elytron in PB compatible mode failed", decrypted, secret);
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you @ericrleung for the PR!
Very minor, but could you please change the order of the values so it is following the format assertTrue( message, expectedValue, actualValue) ? Thank you! Here, I believe secret and encrypted are the expected values.

Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

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

Thanks @ericrleung!

Copy link
Contributor

@PrarthonaPaul PrarthonaPaul left a comment

Choose a reason for hiding this comment

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

LGTM!

@Skyllarr Skyllarr merged commit 36a399c into wildfly-security:2.x Oct 17, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants