grpc-java/testing
ZHANG Dapeng 02c4fa01c6
testing: GrpcCleanupRule
This will ease a lot of test scenarios that we want to automatically shut down servers and channels, with much more flexibility than `GrpcServerRule`. Resolves #3624

**ManagedChannel/Server cleanup details:**
- If the test has already failed, call `shutdownNow()` for each of the resources registered. Throw (an exception including) the original failure. End.
- If the test is successful, call `shutdown()` for each of the resources registered.
- Call `awaitTermination()` with `timeout = deadline - current time` and assert termination for each resource.  If any error occurs, break immediately and call `shutdownNow()` for the current resource and all the rest resources.
-  Throw the first exception encountered if any.
2018-04-30 17:15:52 -07:00
..
src testing: GrpcCleanupRule 2018-04-30 17:15:52 -07:00
BUILD.bazel Update opencensus to 0.11.0 and remove extra dependencies. 2018-01-26 13:04:26 -08:00
build.gradle testing: GrpcCleanupRule 2018-04-30 17:15:52 -07:00