hyperledger-archives / sawtooth-sdk-java

https://wiki.hyperledger.org/display/sawtooth
Apache License 2.0
19 stars 38 forks source link

Refactor sawtooth.sdk.processor.State #21

Closed scealiontach closed 5 years ago

scealiontach commented 5 years ago

This pull refactors the sawtooth.sdk.processor.State concrete class into a State interface and an implemenation StateImpl with no functional difference. This is in aid of unit testing of java based custom transaction processors, where a State interface can be more easily mocked and provided, therefore the TansactionHandler implementations can be tested without a standing sawtooth network.

Also, added some ignores to .gitignore to block Eclipse files.

scealiontach commented 5 years ago

Added the license. The whitespace indenting is apparently due to tabs in the original files, otherwise it is already 2/4 google style.

scealiontach commented 5 years ago

All of the commits related to the interface change should probably be squashed together, since they are correcting formatting noise caused by the local

Think you caught that mid rebasing

scealiontach commented 5 years ago

Missed the examples using the old names. bear with me.