-
Notifications
You must be signed in to change notification settings - Fork 68
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
google-cloud-storage/src/test/java/com/google/cloud/storage/StorageImplMockitoTest.java
Outdated
Show resolved
Hide resolved
google-cloud-storage/src/test/java/com/google/cloud/storage/StorageImplMockitoTest.java
Outdated
Show resolved
Hide resolved
google-cloud-storage/src/test/java/com/google/cloud/storage/StorageImplMockitoTest.java
Outdated
Show resolved
Hide resolved
CopyWriter writer = storage.copy(request); | ||
assertEquals(42L, writer.getBlobSize()); | ||
assertEquals(21L, writer.getTotalBytesCopied()); | ||
assertTrue(!writer.isDone()); |
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.
assertFalse
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.
@elharo assertTrue changed to assertFalse when needed, please take a look.
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.
@elharo could you take a look, please
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.