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

Used @Mock notation instead of calling mocking inside init method for logger...

Used @Mock notation instead of calling mocking inside init method for logger and topicClient in `LegalTagPublisherImplTest.java`
parent 4b76760a
No related branches found
No related tags found
1 merge request!61Improve code coverage
......@@ -43,8 +43,10 @@ public class LegalTagPublisherImplTest {
private static final String CORRELATION_ID = "correlation-id";
private static final String USER_EMAIL = "user@email.com";
@Mock
private JaxRsDpsLog logger;
@Mock
private TopicClient topicClient;
@Mock
......@@ -55,8 +57,6 @@ public class LegalTagPublisherImplTest {
@Before
public void init() throws ServiceBusException, InterruptedException {
topicClient = mock(TopicClient.class);
logger = mock(JaxRsDpsLog.class);
lenient().doNothing().when(topicClient).send(any());
lenient().doNothing().when(logger).error(anyString(), (Exception) any());
lenient().doNothing().when(logger).info(anyString());
......
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