Skip to content

Commit

Permalink
rename test method
Browse files Browse the repository at this point in the history
  • Loading branch information
zpencer committed Jun 8, 2017
1 parent 84b4a66 commit d306a04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/test/java/io/grpc/internal/ServerCallImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,16 @@ private void sendMessage_serverSendsOne_closeOnSecondCall_appRunToCompletion(
}

@Test
public void sendMessage_serverSendsOne_okFailsOnMissingResponse_unary() {
sendMessage_serverSendsOne_okFailsOnMissingResponse(UNARY_METHOD);
public void serverSendsOne_okFailsOnMissingResponse_unary() {
serverSendsOne_okFailsOnMissingResponse(UNARY_METHOD);
}

@Test
public void sendMessage_serverSendsOne_okFailsOnMissingResponse_clientStreaming() {
sendMessage_serverSendsOne_okFailsOnMissingResponse(CLIENT_STREAMING_METHOD);
public void serverSendsOne_okFailsOnMissingResponse_clientStreaming() {
serverSendsOne_okFailsOnMissingResponse(CLIENT_STREAMING_METHOD);
}

private void sendMessage_serverSendsOne_okFailsOnMissingResponse(
private void serverSendsOne_okFailsOnMissingResponse(
MethodDescriptor<Long, Long> method) {
ServerCallImpl<Long, Long> serverCall = new ServerCallImpl<Long, Long>(
stream,
Expand All @@ -269,7 +269,7 @@ private void sendMessage_serverSendsOne_okFailsOnMissingResponse(
}

@Test
public void sendMessage_serverSendsOne_canErrorWithoutResponse() {
public void serverSendsOne_canErrorWithoutResponse() {
final String description = "test description";
final Status status = Status.RESOURCE_EXHAUSTED.withDescription(description);
final Metadata metadata = new Metadata();
Expand Down

0 comments on commit d306a04

Please sign in to comment.