zentol 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_r241907196
##########
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:
are all these refactorings necessary for the test to run on jdk 9? If not,
please move them into a separate commit.
----------------------------------------------------------------
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