-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add breaks to AddOptionalAccessCondition in PipelineHelper #7
Conversation
Builder resultBuilder = PipelineHelpers.addOptionalSourceAccessContitionHeader(builder, accessCondition); | ||
|
||
// Assert | ||
assertNotNull(resultBuilder); |
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.
Can you assert the internal value of the access condition?
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.
no, we cannot. In java, those private properties are not exposed.
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.
I'd expect that because it is a test in the pipeline, you could add another test wrapper to the pipeline in your test to inspect the headings that were added.
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.
I thought about that, but it seems it is hard to construct a mock object this way because WebResource.Builder is finalized, as a result, we cannot extend a mock class from the Builder...
PipelineHelper/addOptionalSourceAccessConditionHeader
…to Beirut Conflicts: microsoft-azure-api/src/main/java/com/microsoft/windowsazure/services/blob/implementation/BlobRestProxy.java
Add breaks to AddOptionalAccessCondition in PipelineHelper
Tables implementation work by rpaquay
Synchronize the AssetCRUD branch with the dev branch.
Adding javadocs for missing parameters
Azure#85