From 1fb440df6807f8c54ae2c3bc2239a69d9a8709a0 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 31 Mar 2025 13:51:05 +0100 Subject: [PATCH] Disable proxy generation for a test --- .../springframework/grpc/sample/GrpcServerApplicationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/grpc-secure/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java b/samples/grpc-secure/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java index c86304f..a219743 100644 --- a/samples/grpc-secure/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java +++ b/samples/grpc-secure/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java @@ -107,7 +107,7 @@ public class GrpcServerApplicationTests { assertEquals("Hello ==> Alien", response.getMessage()); } - @TestConfiguration + @TestConfiguration(proxyBeanMethods = false) @ImportGrpcClients(target = "stub", prefix = "unsecured", types = { SimpleGrpc.SimpleBlockingStub.class }) @ImportGrpcClients(target = "default", types = { ServerReflectionGrpc.ServerReflectionStub.class }) static class ExtraConfiguration {