@@ -51,7 +51,7 @@ public void init() {
5151
5252 @ Test
5353 public void shouldNotRecoverSinceNothingToRecover () {
54- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
54+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
5555 when (customFeignClient .getInterruptedReplicates (blockNumber ))
5656 .thenReturn (Collections .emptyList ());
5757
@@ -62,7 +62,7 @@ public void shouldNotRecoverSinceNothingToRecover() {
6262
6363 @ Test
6464 public void shouldRecoverByWaiting () {
65- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
65+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
6666 when (customFeignClient .getInterruptedReplicates (blockNumber ))
6767 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .WAIT ));
6868
@@ -74,7 +74,7 @@ public void shouldRecoverByWaiting() {
7474
7575 @ Test
7676 public void shouldRecoverByComputingAgainWhenResultNotFound () {
77- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
77+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
7878 when (customFeignClient .getInterruptedReplicates (blockNumber ))
7979 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .CONTRIBUTE ));
8080 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -92,7 +92,7 @@ public void shouldRecoverByComputingAgainWhenResultNotFound() {
9292
9393 @ Test
9494 public void shouldRecoverByContributingWhenResultFound () {
95- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
95+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
9696 when (customFeignClient .getInterruptedReplicates (blockNumber ))
9797 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .CONTRIBUTE ));
9898 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -110,7 +110,7 @@ public void shouldRecoverByContributingWhenResultFound() {
110110
111111 @ Test
112112 public void shouldAbortSinceConsensusReached () {
113- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
113+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
114114 when (customFeignClient .getInterruptedReplicates (blockNumber ))
115115 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .ABORT_CONSENSUS_REACHED ));
116116
@@ -125,7 +125,7 @@ public void shouldAbortSinceConsensusReached() {
125125
126126 @ Test
127127 public void shouldAbortSinceContributionTimeout () {
128- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
128+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
129129 when (customFeignClient .getInterruptedReplicates (blockNumber ))
130130 .thenReturn (getStubInterruptedReplicateList (
131131 RecoveryAction .ABORT_CONTRIBUTION_TIMEOUT ));
@@ -141,7 +141,7 @@ public void shouldAbortSinceContributionTimeout() {
141141
142142 @ Test
143143 public void shouldNotRecoverByRevealingWhenResultNotFound () {
144- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
144+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
145145 when (customFeignClient .getInterruptedReplicates (blockNumber ))
146146 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .REVEAL ));
147147 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -158,7 +158,7 @@ public void shouldNotRecoverByRevealingWhenResultNotFound() {
158158
159159 @ Test
160160 public void shouldRecoverByRevealingWhenResultFound () {
161- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
161+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
162162 when (customFeignClient .getInterruptedReplicates (blockNumber ))
163163 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .REVEAL ));
164164 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -176,7 +176,7 @@ public void shouldRecoverByRevealingWhenResultFound() {
176176
177177 @ Test
178178 public void shouldNotRecoverByUploadingWhenResultNotFound () {
179- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
179+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
180180 when (customFeignClient .getInterruptedReplicates (blockNumber ))
181181 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .UPLOAD_RESULT ));
182182 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -193,7 +193,7 @@ public void shouldNotRecoverByUploadingWhenResultNotFound() {
193193
194194 @ Test
195195 public void shouldRecoverByUploadingWhenResultFound () {
196- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
196+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
197197 when (customFeignClient .getInterruptedReplicates (blockNumber ))
198198 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .UPLOAD_RESULT ));
199199 when (replicateService .retrieveAvailableReplicateModelFromContribAuth (any ()))
@@ -211,7 +211,7 @@ public void shouldRecoverByUploadingWhenResultFound() {
211211
212212 @ Test
213213 public void shouldCompleteTask () {
214- when (iexecHubService .getLastBlockNumber ()).thenReturn (blockNumber );
214+ when (iexecHubService .getLatestBlockNumber ()).thenReturn (blockNumber );
215215 when (customFeignClient .getInterruptedReplicates (blockNumber ))
216216 .thenReturn (getStubInterruptedReplicateList (RecoveryAction .COMPLETE ));
217217
0 commit comments