@Test public void shouldExtractMethodName() { String fullName = "Foo/1234/Bar"; assertThat(GrpcHelper.extractMethodName(fullName), is("Bar")); }
public static String extractMethodName(String fullMethodName) { int index = fullMethodName.lastIndexOf('/'); return index == -1 ? fullMethodName : fullMethodName.substring(index + 1); }
GrpcHelper { public static String extractMethodName(String fullMethodName) { int index = fullMethodName.lastIndexOf('/'); return index == -1 ? fullMethodName : fullMethodName.substring(index + 1); } }
GrpcHelper { public static String extractMethodName(String fullMethodName) { int index = fullMethodName.lastIndexOf('/'); return index == -1 ? fullMethodName : fullMethodName.substring(index + 1); } private  GrpcHelper(); }
GrpcHelper { public static String extractMethodName(String fullMethodName) { int index = fullMethodName.lastIndexOf('/'); return index == -1 ? fullMethodName : fullMethodName.substring(index + 1); } private  GrpcHelper(); static String extractServiceName(String fullMethodName); static String extractNamePrefix(String fullMethodName); static String extractMethodName(String fullMethodName); static Http.ResponseStatus toHttpResponseStatus(StatusException ex); static Http.ResponseStatus toHttpResponseStatus(StatusRuntimeException ex); static Http.ResponseStatus toHttpResponseStatus(Status status); static Throwable ensureStatusException(Throwable thrown, Status status); static StatusRuntimeException ensureStatusRuntimeException(Throwable thrown, Status status); }
GrpcHelper { public static String extractMethodName(String fullMethodName) { int index = fullMethodName.lastIndexOf('/'); return index == -1 ? fullMethodName : fullMethodName.substring(index + 1); } private  GrpcHelper(); static String extractServiceName(String fullMethodName); static String extractNamePrefix(String fullMethodName); static String extractMethodName(String fullMethodName); static Http.ResponseStatus toHttpResponseStatus(StatusException ex); static Http.ResponseStatus toHttpResponseStatus(StatusRuntimeException ex); static Http.ResponseStatus toHttpResponseStatus(Status status); static Throwable ensureStatusException(Throwable thrown, Status status); static StatusRuntimeException ensureStatusRuntimeException(Throwable thrown, Status status);  }