Is there a way so that I can mock blockchain for unit test in quorum. I do not want to set up a test blockchain for unit testing. Is there any possibility.
Since Quorum is essentially running the EVM on the background, I assume you are using Solidity to code your smart contracts.
Simply go to the Run tab, select the
If you are not relying any Quorum specific features of EVM you can easily use Ethereum testrpc chains.
With Populus and Python:
The jpmorganchase quorum package has a simulated backend module that can be used to emulate a blockchain for testing purposes without having to run anything.
Keep in mind tools like truffle, and ganache will actually run test blockchain, whereas the simulated backend mock blockchain only persists for the duration of your function calls and all data is gone when the processing is over. Truffle and ganache are quite useful if you want to play around with a more "realistic" blockchain simulation than using the simulated backend module.