Use a Mock Shim to Test a Chaincode
This method of testing uses a mock version of the shim.ChaincodeStubInterface
stub. With this you can simulate some functionality of your chaincode before deploying it to Oracle Blockchain
Platform. You can also use this library to build unit tests for your chaincode.
Note:
Not all interfaces of the stub are implemented. The following stub functions are not supported.-
GetQueryResult
-
GetHistoryForKey