Skip to content
Snippets Groups Projects
Commit 53f5b2da authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3931 [test] fix sonar issue

parent c21a3eba
No related branches found
No related tags found
No related merge requests found
......@@ -121,8 +121,9 @@ class BayernIdPostfachRemoteServiceTest {
void shouldThrowPostfachRuntimeException() {
when(webServiceTemplate.marshalSendAndReceive(any())).thenThrow(RuntimeException.class);
assertThatExceptionOfType(PostfachRuntimeException.class).isThrownBy(
() -> service.sendMessage(PostfachNachrichtTestFactory.create()));
var postfachNachricht = PostfachNachrichtTestFactory.create();
assertThatExceptionOfType(PostfachRuntimeException.class).isThrownBy(() -> service.sendMessage(postfachNachricht));
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment