Skip to content
Snippets Groups Projects
Commit a845f560 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6240 XTAClient: Remove not required close method

parent 10fc5c11
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,6 @@ public class XtaClient {
.build();
}
public void close(@NotBlank String clientIdentifier, @NotBlank String messageId)
throws XTAWSTechnicalProblemException, PermissionDeniedException, InvalidMessageIDException {
service.close(messageId, deriveIdentifier(clientIdentifier));
}
XtaIdentifier deriveIdentifier(String xtaIdentifier) {
return config.getClientIdentifiers().stream()
......
......@@ -168,20 +168,4 @@ class XtaClientTest {
}
}
@DisplayName("close")
@Nested
class TestClose {
@DisplayName("should call close")
@Test
@SneakyThrows
void shouldCallClose() {
doReturn(SELF_IDENTIFIER).when(client).deriveIdentifier(SELF_IDENTIFIER_VALUE);
client.close(SELF_IDENTIFIER_VALUE, MESSAGE_ID);
verify(service).close(MESSAGE_ID, SELF_IDENTIFIER);
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment