Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 462 Bytes

Readme.md

File metadata and controls

10 lines (9 loc) · 462 Bytes

Demo for web3 based unit tests

This very little demo project shows how you can interact against a solidity contract in java with standard unit test tool

  1. Run mvn clean install
  2. The Web3 compiler plugin ẁill be downloaded
  3. Add your contracts.sol under src/main/contracts
  4. Run mvn web3j:generate-sources - contracts will be compiled into java code and occur in folder java/org.web3.model
  5. Run mvn clean install
  6. Run tests in test folder