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 the new utility methods/constructors #268

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

brfrn169
Copy link
Collaborator

@brfrn169 brfrn169 commented Aug 6, 2021

This PR refactors the code to use the utility methods/constructors introduced in the following PRs:
#198
#265

Please take a look!

@brfrn169 brfrn169 self-assigned this Aug 6, 2021
Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you 😄
Creating request and parsing results will become much easier to write.

assertThat(((IntValue) results.get(2).getValue(COL_NAME1).get()).get()).isEqualTo(1);
assertThat(((IntValue) results.get(2).getValue(COL_NAME3).get()).get()).isEqualTo(0);
assertThat(((IntValue) results.get(2).getValue(COL_NAME4).get()).get()).isEqualTo(2);
assertThat(results.get(0).getValue(COL_NAME1).get().getAsInt()).isEqualTo(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice improvement these getAsXXX methods 😄

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

Nice! Thank you!

@feeblefakie feeblefakie merged commit 560472f into master Aug 10, 2021
@feeblefakie feeblefakie deleted the use-new-utility-methods branch August 10, 2021 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants