hashgraph / hedera-exchange-rate-tool

Hedera Exchange Rate Tool to send median of HBAR/USD exchange rate from various Exchanges to Hedera Network
Apache License 2.0
3 stars 4 forks source link

Use only Mockito for unit testing. #121

Closed anighanta closed 4 years ago

anighanta commented 4 years ago

Summary As a developer working on Hedera Exchange Rate Tool , I need to move away from using JMockit as it has issues with Junit5. So, im going to move all the unit test mocking to use Mockito library instead.

Possible resolution We first used JMockit to mock static methods and as Mockito doesn't support mocking static methods, a minor refactoring of the code is required to not use statics.