You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So to clarify, the idea is that we could build some wrapper/adapter over a Vector (or VectorSchemaRoot) to support iteration over it as Java objects, as a more convenient (if less performant) version of the Reader classes. Then you could easily turn that into a testing API.
* Added a method to get an Iterator for a ValueVector
* Added a method to get an Iterable for a ValueVector
* The Iterator/Iterable are typed to Object
…1895)
### Rationale for this change
Simplify validating the values in a `ValueVector` in unit tests.
### What changes are included in this PR?
Methods for creating an `Iterable` and `Iterator` for a `ValueVector`. Also updated some unit tests to use the new methods.
### Are these changes tested?
Some unit tests were updated.
### Are there any user-facing changes?
The new methods are publicly available in the `ValueVectorUtility` class.
* GitHub Issue: #37728
Authored-by: Norman Jordan <[email protected]>
Signed-off-by: David Li <[email protected]>
lidavidm
changed the title
[Java]: Using an Iterator/Iterable/Stream to provide objects to a Java Collection for testing assertions
[Java] Using an Iterator/Iterable/Stream to provide objects to a Java Collection for testing assertions
Jun 18, 2024
Describe the enhancement requested
Use an Iterator/Iterable/Stream to provide objects into a Java Collection and use it for standard assertions.
Improve this method of comparing values of Vector Value objects, for example:
Component(s)
Java
The text was updated successfully, but these errors were encountered: