Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nephery committed Jul 23, 2024
1 parent 4520549 commit b1802f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.boot.test.system.CapturedOutput;
import org.springframework.boot.test.system.OutputCaptureExtension;
Expand All @@ -27,7 +28,7 @@ public class InboundXMLMessageListenerTest {
public void testListenerIsStoppedOnStaleSessionException(@Mock FlowReceiverContainer flowReceiverContainer, CapturedOutput output)
throws UnboundFlowReceiverContainerException, JCSMPException {

when(flowReceiverContainer.receive())
when(flowReceiverContainer.receive(Mockito.anyInt()))
.thenThrow(new StaleSessionException("Session has become stale", new JCSMPException("Specific JCSMP exception")));

BasicInboundXMLMessageListener inboundXMLMessageListener = new BasicInboundXMLMessageListener(
Expand Down

0 comments on commit b1802f3

Please sign in to comment.