Skip to content
Snippets Groups Projects
Commit 8d2aac8a authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-6240 KOP-2589 fix test

parent a06f4453
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ public class MsgBoxPortImplTest { ...@@ -143,7 +143,7 @@ public class MsgBoxPortImplTest {
@Test @Test
void shouldThrowException() { void shouldThrowException() {
when(xtaMessageService.getMessage(request)).thenReturn(Optional.empty()); when(xtaMessageService.getMessage(request)).thenReturn(Optional.empty());
when(exceptionMapper.createInvalidMessageIDException(any())).thenReturn(exception); when(exceptionMapper.createInvalidMessageIDException(any(), any())).thenReturn(exception);
assertThatThrownBy(TestGetMessage.this::getMessage) assertThatThrownBy(TestGetMessage.this::getMessage)
.isEqualTo(exception); .isEqualTo(exception);
...@@ -308,7 +308,7 @@ public class MsgBoxPortImplTest { ...@@ -308,7 +308,7 @@ public class MsgBoxPortImplTest {
@Test @Test
void shouldThrowException() { void shouldThrowException() {
when(xtaMessageService.closeMessage(request)).thenReturn(false); when(xtaMessageService.closeMessage(request)).thenReturn(false);
when(exceptionMapper.createInvalidMessageIDException(any())).thenReturn(exception); when(exceptionMapper.createInvalidMessageIDException(any(), any())).thenReturn(exception);
assertThatThrownBy(TestClose.this::close) assertThatThrownBy(TestClose.this::close)
.isEqualTo(exception); .isEqualTo(exception);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment