WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@fl0rian-p
Copy link
Contributor

@fl0rian-p fl0rian-p commented Dec 12, 2025

This PR aims to solve issue #325.

It introduces array comparison to avoid detecting changes when there are none.

/**
* Helper class to build a java.sql.Array without using a DB connection
*/
private static class SimpleArray implements Array {
Copy link
Contributor Author

@fl0rian-p fl0rian-p Dec 12, 2025

Choose a reason for hiding this comment

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

@VanRoy, Not sure on the best way to go there: I found no simple native helper to create a java.sql.Array.
In this class there are two ways :

  • this static class
  • or getting one from a connection : connection would need to kept inside throughout the test otherwise the object would be closed upon calling Array#getArray.

Please tell me which way you prefer and I'll update the code

Copy link
Member

Choose a reason for hiding this comment

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

@fl0rian-p Probably the best comprise 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍
That should be ready for full review :)

@fl0rian-p fl0rian-p force-pushed the feature/support-array-comparison branch 2 times, most recently from 26e85f0 to a2e30b0 Compare December 19, 2025 16:22
@fl0rian-p fl0rian-p force-pushed the feature/support-array-comparison branch from a2e30b0 to 92dc23d Compare December 19, 2025 16:22
@fl0rian-p fl0rian-p marked this pull request as ready for review December 19, 2025 16:23
@fl0rian-p fl0rian-p requested a review from VanRoy December 19, 2025 16:23
@VanRoy VanRoy merged commit 2f5a6d5 into assertj:main Dec 21, 2025
1 check failed
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