TisonKun commented on a change in pull request #7302: [FLINK-11156] [tests] 
Reconcile powermock with JDK 9
URL: https://github.com/apache/flink/pull/7302#discussion_r241909198
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/ZooKeeperCompletedCheckpointStoreMockitoTest.java
 ##########
 @@ -89,46 +77,72 @@ public void testCheckpointRecovery() throws Exception {
                expectedCheckpointIds.add(1L);
                expectedCheckpointIds.add(2L);
 
-               final RetrievableStateHandle<CompletedCheckpoint> 
failingRetrievableStateHandle = mock(RetrievableStateHandle.class);
-               
when(failingRetrievableStateHandle.retrieveState()).thenThrow(new 
IOException("Test exception"));
-
-               final RetrievableStateHandle<CompletedCheckpoint> 
retrievableStateHandle1 = mock(RetrievableStateHandle.class);
-               when(retrievableStateHandle1.retrieveState()).then(
 
 Review comment:
   Thanks for your review @zentol. I would separate the commits but wonder if 
it requires separated pull requests?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to