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

test: convert a portion of tests from easymock to mockito #634

Closed
wants to merge 4 commits into from

Conversation

dmitry-fa
Copy link
Contributor

Toward #270

For the convenience of reviewers this PR comprises two commits, the second commit allows to see the converted tests as if there were changed, not added.

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label Nov 24, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 24, 2020
@codecov
Copy link

codecov bot commented Nov 24, 2020

Codecov Report

Merging #634 (b35bcbe) into master (eb778b6) will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #634      +/-   ##
============================================
+ Coverage     64.32%   64.43%   +0.11%     
  Complexity      630      630              
============================================
  Files            32       32              
  Lines          5317     5317              
  Branches        519      519              
============================================
+ Hits           3420     3426       +6     
+ Misses         1735     1729       -6     
  Partials        162      162              
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/storage/StorageImpl.java 82.05% <0.00%> (+0.73%) 147.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 eb778b6...b35bcbe. Read the comment docs.

CopyWriter writer = storage.copy(request);
assertEquals(42L, writer.getBlobSize());
assertEquals(21L, writer.getTotalBytesCopied());
assertTrue(!writer.isDone());
Copy link
Contributor

Choose a reason for hiding this comment

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

assertFalse

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elharo assertTrue changed to assertFalse when needed, please take a look.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elharo could you take a look, please

@dmitry-fa dmitry-fa added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 25, 2020
@dmitry-fa dmitry-fa requested a review from elharo December 1, 2020 11:42
@dmitry-fa dmitry-fa closed this Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants