Skip to content
Example to spin up VMWare Concord using docker-compose to test contracts in web3j-unit
Java Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Example to use Web3j-unit to test against docker-compose file

Contains a simple test with required dependencies for you to get started with web3j-unit testing with custom docker-compose file.

Web3j-unit is a Junit 5 extension to streamline the creation of Ethereum contract tests.

Getting started

This example runs Greeter contract against a network of VMWare Concord nodes defined using a docker-compose file.

To get started, we need to build the images of Concord locally.

Once you have Docker installed, checkout the Concord repository:

git clone https://github.com/vmware/concord.git

After that, from the Concord directory, run the build script for the Docker images:

cd concord
docker/build.images.sh

We’re ready to test using Concord.

Usage

To run the tests in this project, run

./gradlew clean build test
You can’t perform that action at this time.