apache / apache/arrow-java

[Java] Consider starting to use Google Truth Fluent Assertions library

Open
#278 3 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Java
Stars
94
Forks
152
Avg merge
3d 16h
Merged PRs (30d)
11

Description

This can offer more readable asserts than the limited JUnit assertions.

 

we might want to add see if we can add a custom subject, that allows for easily asserting things about ValueVector's (e.g. NullCount, Length, etc).

**Reporter**: [Micah Kornfield](https://issues.apache.org/jira/browse/ARROW-6931) / @emkornfield

**Note**: *This issue was originally created as [ARROW-6931](https://issues.apache.org/jira/browse/ARROW-6931). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Review the Java tests that currently use JUnit assertions and identify the scope for adopting Google Truth. Examine the proposed custom subject for ValueVector, including assertions for NullCount and Length. Done should include an agreed migration scope and working ValueVector assertions, but the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.