diff --git a/src/main/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationProperties.java b/src/main/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationProperties.java index 23e5f2dfe..c9130fa91 100644 --- a/src/main/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationProperties.java +++ b/src/main/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationProperties.java @@ -58,11 +58,6 @@ public String getRoutingKeyDeletedTemplate() { return routingKeyDeletedTemplate; } - @Deprecated - public void setRoutingKeyDeletedTwo(String routingKeyDeletedTemplate) { - this.routingKeyDeletedTemplate = routingKeyDeletedTemplate; - } - public void setRoutingKeyDeletedTemplate(String routingKeyDeletedTemplate) { this.routingKeyDeletedTemplate = routingKeyDeletedTemplate; } diff --git a/src/test/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationPropertiesTest.java b/src/test/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationPropertiesTest.java index 33aacacd9..e012dce10 100644 --- a/src/test/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationPropertiesTest.java +++ b/src/test/java/de/focusshift/zeiterfassung/tenancy/registration/messaging/OidcClientRegistrationRabbitmqConfigurationPropertiesTest.java @@ -47,17 +47,6 @@ void ensureRoutingKeyCreatedTemplateCannotBeEmptyOrNull(String routingKeyCreated assertThat(violations.size()).isOne(); } - @ParameterizedTest - @ValueSource(strings = {""}) - @NullSource - void ensureRoutingKeyDeletedTwoCannotBeEmptyOrNull(String routingKeyDeletedTwo) { - final OidcClientRegistrationRabbitmqConfigurationProperties sut = new OidcClientRegistrationRabbitmqConfigurationProperties(); - sut.setRoutingKeyDeletedTwo(routingKeyDeletedTwo); - final Set> violations = validator.validate(sut); - - assertThat(violations.size()).isOne(); - } - @ParameterizedTest @ValueSource(strings = {""}) @NullSource