Navigation Menu

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

fix: Blob.downloadTo() methods do not wrap RetryHelper$RetryHelperException #218

Merged
merged 2 commits into from Apr 2, 2020

Conversation

dmitry-fa
Copy link
Contributor

Fixes #100

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 31, 2020
@dmitry-fa dmitry-fa added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 1, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 1, 2020
@codecov
Copy link

codecov bot commented Apr 1, 2020

Codecov Report

Merging #218 into master will increase coverage by 0.17%.
The diff coverage is 91.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #218      +/-   ##
============================================
+ Coverage     63.50%   63.67%   +0.17%     
- Complexity      540      548       +8     
============================================
  Files            30       31       +1     
  Lines          4759     4785      +26     
  Branches        427      428       +1     
============================================
+ Hits           3022     3047      +25     
- Misses         1577     1578       +1     
  Partials        160      160              
Impacted Files Coverage Δ Complexity Δ
...e/src/main/java/com/google/cloud/storage/Blob.java 81.97% <91.66%> (-0.28%) 29.00 <0.00> (ø)
...va/com/google/cloud/storage/StorageOperations.java 100.00% <0.00%> (ø) 8.00% <0.00%> (?%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 010c112...aee34fb. Read the comment docs.

@dmitry-fa dmitry-fa requested review from elharo and frankyn April 1, 2020 11:55
@@ -662,4 +661,25 @@ public Long answer() throws Throwable {
byte actual[] = Files.readAllBytes(file.toPath());
assertArrayEquals(expected, actual);
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Per Google practices, new tests should use Mockito, not EasyMock. Yes, even if this means some tests use Mockito and others use EasyMock.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this rule applied to the tests within a single file or withing a package?
Is it possible to make an exception?

Copy link
Member

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

LGTM

@frankyn
Copy link
Member

frankyn commented Apr 2, 2020 via email

@dmitry-fa dmitry-fa merged commit 5599f29 into googleapis:master Apr 2, 2020
@dmitry-fa dmitry-fa deleted the blobDownload branch June 26, 2020 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blob.downloadTo() methods do not wrap RetryHelper$RetryHelperException
5 participants