You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/02/08 01:47:43 UTC
[GitHub] [spark] LuciferYang commented on a change in pull request #31487: [SPARK-34375][CORE][K8S][TEST] Replaces 'Mockito.initMocks' with 'Mockito.openMocks'
LuciferYang commented on a change in pull request #31487:
URL: https://github.com/apache/spark/pull/31487#discussion_r571739448
##########
File path: core/src/test/java/org/apache/spark/shuffle/sort/UnsafeShuffleWriterSuite.java
##########
@@ -98,7 +98,7 @@ public void tearDown() {
@Before
@SuppressWarnings("unchecked")
public void setUp() throws IOException {
- MockitoAnnotations.initMocks(this);
+ MockitoAnnotations.openMocks(this);
Review comment:
After tracing the code, I found that the `close()` method alway `do nothing`, but I'll change them all to `openMocks(this).close()` later :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org