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

Use AssertJ hasSize or isEmpty method #24003

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Nov 1, 2024

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Nov 1, 2024
@github-actions github-actions bot added iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector labels Nov 1, 2024
assertThat(getSerializedPagePositionCount(results.getSerializedPages().get(0))).isEqualTo(1);

for (boolean moreResults = true; moreResults; moreResults = !results.isBufferComplete()) {
results = sqlTaskManager.getTaskResults(taskId, OUT, results.getToken() + results.getSerializedPages().size(), DataSize.of(1, Unit.MEGABYTE)).getResultsFuture().get();
}
assertThat(results.isBufferComplete()).isTrue();
assertThat(results.getSerializedPages().size()).isEqualTo(0);
assertThat(results.getSerializedPages()).hasSize(0);
Copy link
Member Author

@ebyhr ebyhr Nov 1, 2024

Choose a reason for hiding this comment

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

Let me change to isEmpty().

@ebyhr ebyhr changed the title Use AssertJ hasSize method Use AssertJ hasSize or isEmpty method Nov 1, 2024
@ebyhr ebyhr merged commit fbb9610 into trinodb:master Nov 1, 2024
92 checks passed
@ebyhr ebyhr deleted the ebi/test-has-size branch November 1, 2024 09:27
@github-actions github-actions bot added this to the 465 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

2 participants