bdledger-java-sdk/README.md

43 lines
1007 B
Markdown
Raw Normal View History

2018-11-28 08:44:52 +00:00
## Dependencies:
2018-10-02 02:37:26 +00:00
- io.grpc:grpc-netty-shaded
- io.grpc:grpc-protobuf
- io.grpc:grpc-stub
2018-11-28 08:44:52 +00:00
2019-04-23 16:18:08 +00:00
w/ **Gradle**
```
compile 'io.grpc:grpc-netty-shaded:' + grpc_java_version
compile 'io.grpc:grpc-protobuf:' + grpc_java_version
compile 'io.grpc:grpc-stub:' + grpc_java_version
```
w/ **Maven**
```
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpc_java_version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc_java_version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc_java_version}</version>
</dependency>
```
## Usage
See Javadoc and `src/test/java/bdchain/api/*Tests.java` files.
2018-11-28 08:44:52 +00:00
## Testing
1. Download [mock servers](https://public.internetapi.cn/?dir=bdchain/test) for Transaction Ledger &
Accounting Chain
2. Run mock servers with ```--port={{port}}```
3. Run ```gradle test```