Skip to content

Commit

Permalink
[MODAUD-196]. Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Nov 6, 2024
1 parent d7d713a commit 5b3d06e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -56,7 +55,7 @@ public void setUp() throws Exception {
invoiceEventsDao = spy(new InvoiceEventsDaoImpl(postgresClientFactory));
invoiceAuditEventService = new InvoiceAuditEventsServiceImpl(invoiceEventsDao);

doReturn(postgresClient).when(postgresClientFactory).createInstance(eq(TENANT_ID));
doReturn(postgresClient).when(postgresClientFactory).createInstance(TENANT_ID);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -56,7 +55,7 @@ public void setUp() throws Exception {
invoiceLineEventsDao = spy(new InvoiceLineEventsDaoImpl(postgresClientFactory));
invoiceLineAuditEventService = new InvoiceLineAuditEventsServiceImpl(invoiceLineEventsDao);

doReturn(postgresClient).when(postgresClientFactory).createInstance(eq(TENANT_ID));
doReturn(postgresClient).when(postgresClientFactory).createInstance(TENANT_ID);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -54,7 +53,7 @@ public void setUp() throws Exception {
orderEventsDao = spy(new OrderEventsDaoImpl(postgresClientFactory));
orderAuditEventService = new OrderAuditEventsServiceImpl(orderEventsDao);

doReturn(postgresClient).when(postgresClientFactory).createInstance(eq(TENANT_ID));
doReturn(postgresClient).when(postgresClientFactory).createInstance(TENANT_ID);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -54,7 +53,7 @@ public void setUp() throws Exception {
orderLineEventsDao = spy(new OrderLineEventsDaoImpl(postgresClientFactory));
orderLineAuditEventService = new OrderLineAuditEventsServiceImpl(orderLineEventsDao);

doReturn(postgresClient).when(postgresClientFactory).createInstance(eq(TENANT_ID));
doReturn(postgresClient).when(postgresClientFactory).createInstance(TENANT_ID);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
Expand Down Expand Up @@ -54,7 +53,7 @@ public void setUp() throws Exception {
pieceEventsDao = spy(new PieceEventsDaoImpl(postgresClientFactory));
pieceAuditEventsService = new PieceAuditEventsServiceImpl(pieceEventsDao);

doReturn(postgresClient).when(postgresClientFactory).createInstance(eq(TENANT_ID));
doReturn(postgresClient).when(postgresClientFactory).createInstance(TENANT_ID);
}
}

Expand Down

0 comments on commit 5b3d06e

Please sign in to comment.