summaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/test/java/org
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2022-03-09 11:48:35 +0000
committerefiacor <fiachra.corcoran@est.tech>2022-03-09 11:48:41 +0000
commit7d9ba5eea9377ab15f359bd32306bdb9c276f638 (patch)
tree5cc505224b97b844f466b6230ee6488cce668689 /datarouter-prov/src/test/java/org
parent4ae23b37102b3512d0af2c93565358d7db7b9c95 (diff)
[DMAAP-DR] Fix sql injection bug
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Icccc65b3b90c553dea74d95bf247b08ae6f78506 Issue-ID: DMAAP-1623
Diffstat (limited to 'datarouter-prov/src/test/java/org')
-rwxr-xr-xdatarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java
index 1fe8d9b1..b6686b0e 100755
--- a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java
+++ b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java
@@ -119,7 +119,7 @@ public class StatisticsServletTest {
ServletOutputStream outStream = mock(ServletOutputStream.class);
when(response.getOutputStream()).thenReturn(outStream);
statisticsServlet.doGet(request, response);
- verify(response).setStatus(eq(HttpServletResponse.SC_OK));
+ verify(response).setStatus(HttpServletResponse.SC_OK);
}
@Test
@@ -130,7 +130,7 @@ public class StatisticsServletTest {
ServletOutputStream outStream = mock(ServletOutputStream.class);
when(response.getOutputStream()).thenReturn(outStream);
statisticsServlet.doGet(request, response);
- verify(response).setStatus(eq(HttpServletResponse.SC_OK));
+ verify(response).setStatus(HttpServletResponse.SC_OK);
}
private void buildRequestParameters() {