Skip to content

Commit 86fba80

Browse files
authored
Remove TestHelper (#14)
1 parent 6734dce commit 86fba80

File tree

24 files changed

+9
-716
lines changed

24 files changed

+9
-716
lines changed

codelabs/Getting_Started_with_gRPC_Java/complete/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ pluginManagement {
77
}
88
}
99

10+
rootProject.name = 'complete'
11+

codelabs/Getting_Started_with_gRPC_Java/complete/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class RouteGuideClient {
4545
private final RouteGuideBlockingStub blockingStub;
4646

4747
private Random random = new Random();
48-
private TestHelper testHelper;
4948

5049
/** Construct client for accessing RouteGuide server using the existing channel. */
5150
public RouteGuideClient(Channel channel) {
@@ -63,14 +62,8 @@ public void getFeature(int lat, int lon) {
6362
Feature feature;
6463
try {
6564
feature = blockingStub.getFeature(request);
66-
if (testHelper != null) {
67-
testHelper.onMessage(feature);
68-
}
6965
} catch (StatusRuntimeException e) {
7066
warning("RPC failed: {0}", e.getStatus());
71-
if (testHelper != null) {
72-
testHelper.onRpcError(e);
73-
}
7467
return;
7568
}
7669
if (RouteGuideUtil.exists(feature)) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'Getting_Started_with_gRPC_Java'

codelabs/Getting_Started_with_gRPC_Java/start_here/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ pluginManagement {
66
gradlePluginPortal()
77
}
88
}
9+
10+
rootProject.name = 'start_here'

codelabs/Getting_Started_with_gRPC_Java_Streaming/complete/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)