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

Refactored and enhanced ArgumentsBuilder #6474

Merged
merged 3 commits into from
Mar 3, 2020
Merged

Conversation

davidbenjamin
Copy link
Contributor

Closes #4550

@jonn-smith You seem to be the godfather of this ticket. All the integration test files changed are just the consequence of renaming; the only substance is the changes to ArgumentsBuilder.

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

@davidbenjamin I should have done this a long time ago. Thank you for doing it now. I have 1 real comment. 👍 after that. I'm assuming that the changes to the tests are automatically applied and don't need a careful review.

@@ -26,200 +26,169 @@ public ArgumentsBuilder(){}
public ArgumentsBuilder(Object[] args){
Copy link
Member

Choose a reason for hiding this comment

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

Could you update the class comment while you're here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Assert.assertEquals(args.getArgsArray(), new String[]{"--foo","bar"});
Assert.assertEquals(args.getString(), "--foo bar");
}

@Test
Copy link
Member

Choose a reason for hiding this comment

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

No love for positional arguments? There might be 1 tool that uses those somewhere....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addPositional was just a wrapper for add, which struck me as confusing at best, misleading at worst.

@davidbenjamin
Copy link
Contributor Author

I'm assuming that the changes to the tests are automatically applied and don't need a careful review.

Yes.

@davidbenjamin davidbenjamin removed the request for review from jonn-smith March 3, 2020 12:22
@davidbenjamin davidbenjamin merged commit ff33bbc into master Mar 3, 2020
@davidbenjamin davidbenjamin deleted the db_args_4550 branch March 3, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgumentsBuilder needs to be refactored.
3 participants