Skip to content
Snippets Groups Projects
Commit d8a5673c authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Used lenient mocking behaviour

parent 9145eaf3
No related branches found
No related tags found
1 merge request!61Improve code coverage
Pipeline #9671 passed
......@@ -57,9 +57,9 @@ public class LegalTagPublisherImplTest {
public void init() throws ServiceBusException, InterruptedException {
topicClient = mock(TopicClient.class);
logger = mock(JaxRsDpsLog.class);
doNothing().when(topicClient).send(any());
doNothing().when(logger).error(anyString(), (Exception) any());
doNothing().when(logger).info(anyString());
lenient().doNothing().when(topicClient).send(any());
lenient().doNothing().when(logger).error(anyString(), (Exception) any());
lenient().doNothing().when(logger).info(anyString());
doReturn(DATA_PARTITION_WITH_FALLBACK_ACCOUNT_ID).when(headers).getPartitionIdWithFallbackToAccountId();
doReturn(CORRELATION_ID).when(headers).getCorrelationId();
doReturn(USER_EMAIL).when(headers).getUserEmail();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment