Update client tests

This commit is contained in:
Nex
2018-11-28 16:44:52 +08:00
parent 4d5f392539
commit 7b25e6a773
5 changed files with 301 additions and 89 deletions

View File

@@ -18,11 +18,19 @@ version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
def grpc_java_version = '1.15.0'
def junit_version = '5.3.1'
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
// testLogging {
// events "passed", "skipped", "failed"
// }
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
@@ -60,5 +68,7 @@ dependencies {
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
testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:' + junit_version
testImplementation 'org.junit.jupiter:junit-jupiter-params:' + junit_version
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:' + junit_version
}