Skip to content

Commit 51af7f6

Browse files
authored
Merge pull request #617 from iExecBlockchainComputing/feature/bump-iexec-common-libraries
Feature/bump iexec common libraries
2 parents 9f2a33b + 3a176a8 commit 51af7f6

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ All notable changes to this project will be documented in this file.
2626
- Upgrade to Spring Dependency Management Plugin 1.1.3. (#611)
2727
- Upgrade to `testcontainers` 1.19.0. (#613)
2828
- Upgrade to `jenkins-library` 2.7.3. (#615)
29+
- Upgrade to `iexec-commons-poco` 3.1.0. (#617)
30+
- Upgrade to `iexec-common` 8.3.0. (#617)
2931

3032
## [[8.1.2]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v8.1.2) 2023-06-29
3133

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version=8.1.2
2-
iexecCommonVersion=8.2.1
3-
iexecCommonsPocoVersion=3.0.5
2+
iexecCommonVersion=8.3.0
3+
iexecCommonsPocoVersion=3.1.0
44
iexecBlockchainAdapterVersion=8.1.1
55
iexecResultVersion=8.1.1
66
iexecSmsVersion=8.1.1

src/test/java/com/iexec/core/chain/IexecHubServiceTests.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@
1111
import org.junit.jupiter.params.ParameterizedTest;
1212
import org.junit.jupiter.params.provider.MethodSource;
1313
import org.mockito.Mock;
14-
import org.mockito.MockedStatic;
15-
import org.mockito.Mockito;
1614
import org.mockito.MockitoAnnotations;
1715
import org.springframework.test.util.ReflectionTestUtils;
1816
import org.web3j.crypto.Credentials;
1917
import org.web3j.crypto.Keys;
20-
import org.web3j.protocol.core.RemoteFunctionCall;
2118
import org.web3j.protocol.core.methods.response.Log;
22-
import org.web3j.tx.TransactionManager;
2319

24-
import java.math.BigInteger;
2520
import java.util.Optional;
2621
import java.util.function.BiFunction;
2722
import java.util.stream.Stream;
@@ -57,15 +52,7 @@ void init() throws Exception {
5752
when(web3jService.hasEnoughGas(any())).thenReturn(true);
5853
when(chainConfig.getHubAddress()).thenReturn("0x748e091bf16048cb5103E0E10F9D5a8b7fBDd860");
5954

60-
try (MockedStatic<IexecHubContract> iexecHubContract = Mockito.mockStatic(IexecHubContract.class)) {
61-
final IexecHubContract mockIexecContract = mock(IexecHubContract.class);
62-
final RemoteFunctionCall<BigInteger> mockRemoteFunctionCall = mock(RemoteFunctionCall.class);
63-
iexecHubContract.when(() -> IexecHubContract.load(any(), any(), (TransactionManager) any(), any()))
64-
.thenReturn(mockIexecContract);
65-
when(mockIexecContract.contribution_deadline_ratio()).thenReturn(mockRemoteFunctionCall);
66-
when(mockRemoteFunctionCall.send()).thenReturn(BigInteger.ONE);
67-
iexecHubService = spy(new IexecHubService(credentialsService, web3jService, chainConfig));
68-
}
55+
iexecHubService = spy(new IexecHubService(credentialsService, web3jService, chainConfig));
6956
}
7057

7158

0 commit comments

Comments
 (0)