-
Notifications
You must be signed in to change notification settings - Fork 187
added tests and implementation for options object #661
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
Conversation
|
Hi @carycheng, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks! |
Pull Request Test Coverage Report for Build 1777
💛 - Coveralls |
| /** | ||
| * @see #getOptionsObject() | ||
| */ | ||
| private List<Option> optionsObject; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the options property being used anywhere now? If not, you could just change its type and not have two properties for this.
| * Gets list of possible options for options type of the field. | ||
| * @return list of possible options for option type of the field. | ||
| */ | ||
| public List<Option> getOptionsObject() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method name should be pluralized, e.g. getOptionsObjects()
…va-sdk into metadata-template-bug
| */ | ||
| public void setOptions(List<String> options) { | ||
| this.options = options; | ||
| JsonObject optionObject = new JsonObject(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any issue with re-using the same JsonObject for each key here?
| @Category(IntegrationTest.class) | ||
| public void createMetadataTemplateSucceeds() { | ||
| BoxAPIConnection api = new BoxAPIConnection(TestConfig.getAccessToken()); | ||
| BoxAPIConnection api = new BoxAPIConnection("UXu8HsUlB4K5uDWGWSO075k1qq9hle93"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't commit this!
| MetadataTemplate template = MetadataTemplate.createMetadataTemplate(api, "enterprise", | ||
| "documentFlow03", "Document Flow 03", false, fields); | ||
| } catch (BoxAPIException apiEx) { | ||
| System.out.println("Exception: " + apiEx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't commit this either
No description provided.