From b76dad946337a6ddbfdb746d6a140b875b75b317 Mon Sep 17 00:00:00 2001 From: OZG-Cloud Team <noreply@ozg-sh.de> Date: Mon, 13 May 2024 11:37:49 +0200 Subject: [PATCH] OZG-5412 Revert GrpcClientsProperties --- .../de/ozgcloud/eingang/router/GrpcClientsProperties.java | 4 +--- .../router/VorgangManagerListPropertiesTestFactory.java | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/router/src/main/java/de/ozgcloud/eingang/router/GrpcClientsProperties.java b/router/src/main/java/de/ozgcloud/eingang/router/GrpcClientsProperties.java index a9efb992..3f308dd3 100644 --- a/router/src/main/java/de/ozgcloud/eingang/router/GrpcClientsProperties.java +++ b/router/src/main/java/de/ozgcloud/eingang/router/GrpcClientsProperties.java @@ -31,7 +31,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.springframework.validation.annotation.Validated; -import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -44,10 +43,9 @@ public class GrpcClientsProperties { private Map<String, ClientProperty> client; - @Builder @Getter @Setter - public static class ClientProperty { + static class ClientProperty { @NotEmpty private String address; private String negotationType = "TLS"; diff --git a/router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerListPropertiesTestFactory.java b/router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerListPropertiesTestFactory.java index e9264435..99ed3490 100644 --- a/router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerListPropertiesTestFactory.java +++ b/router/src/test/java/de/ozgcloud/eingang/router/VorgangManagerListPropertiesTestFactory.java @@ -69,7 +69,8 @@ class VorgangManagerListPropertiesTestFactory { } static GrpcClientsProperties createClientProperties() { - var property = new ClientProperty(ADDRESS, "TLS"); + var property = new ClientProperty(); + property.setAddress(ADDRESS); var properties = new GrpcClientsProperties(); properties.setClient(Map.of(CHANNEL_NAME, property)); return properties; -- GitLab