Skip to content

Commit

Permalink
Update grpc-all, grpc-core, grpc-netty, ... to 1.62.2
Browse files Browse the repository at this point in the history
  • Loading branch information
47erbot authored Mar 1, 2024
1 parent e137983 commit 14d1730
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
55 changes: 55 additions & 0 deletions modules/testing/src/main/java/io/grpc/NoopServerCall.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright 2016 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.grpc;

/**
* {@link NoopServerCall} is a class that is designed for use in tests. It is designed to be used
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
* to be overridden.
*/
public class NoopServerCall<ReqT, RespT> extends ServerCall<ReqT, RespT> {

/**
* {@link NoopServerCall.NoopServerCallListener} is a class that is designed for use in tests.
* It is designed to be used in places where a scriptable call listener is necessary. By
* default, all methods are noops, and designed to be overridden.
*/
public static class NoopServerCallListener<T> extends ServerCall.Listener<T> {
}

@Override
public void request(int numMessages) {}

@Override
public void sendHeaders(Metadata headers) {}

@Override
public void sendMessage(RespT message) {}

@Override
public void close(Status status, Metadata trailers) {}

@Override
public boolean isCancelled() {
return false;
}

@Override
public MethodDescriptor<ReqT, RespT> getMethodDescriptor() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import java.util.UUID
import cats.effect.{Resource, Sync}
import cats.syntax.all._
import io.grpc.inprocess.{InProcessChannelBuilder, InProcessServerBuilder}
import io.grpc.internal.NoopServerCall.NoopServerCallListener
import io.grpc.NoopServerCall.NoopServerCallListener
import io.grpc.util.MutableHandlerRegistry
import io.grpc._

Expand Down
2 changes: 1 addition & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object ProjectPlugin extends AutoPlugin {
val enumeratum: String = "1.7.3"
val fs2: String = "3.9.4"
val fs2Grpc: String = "2.7.14"
val grpc: String = "1.60.2"
val grpc: String = "1.62.2"
val kindProjector: String = "0.13.3"
val log4cats: String = "2.6.0"
val log4s: String = "1.10.0"
Expand Down

0 comments on commit 14d1730

Please sign in to comment.