Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
There is a lot of verbosity in the construction of Arrays for testing purposes (multiple lines of setSafe(...) or set(...).
We should start adding a utility class to make test setup clearer and more concise, note this class should be located in arrow-vector test package and could be used in other module’s testing by adding dependency:
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-vector</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Usage would be something like:
try (IntVector vector = new IntVector(“vector”, allocator))
Unknown macro: { ValueVectorPopulator.setVector(vector, 1, 2, null, 4, 5); output = doSomethingWith(input); assertThat(output).isEqualTo(expected); }
Attachments
Issue Links
- links to