summaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/test
diff options
context:
space:
mode:
authoredepaul <paul.p.dennehy@est.tech>2019-08-09 10:12:05 +0000
committeredepaul <paul.p.dennehy@est.tech>2019-08-09 10:12:05 +0000
commit632e4aaf606ca99ddc5a5cba11deb5e2ee2a90c5 (patch)
treed519af926b076b363d96a34d648872e72c9dd903 /datarouter-prov/src/test
parent2e0f4f0a4673cf8dd08f28b7125113b7aedbdb1d (diff)
Remove redundant unit test
Change-Id: I15c64b30e6e660cbff2c00a44429dc05b6592327 Issue-ID: DMAAP-1195 Signed-off-by: edepaul <paul.p.dennehy@est.tech>
Diffstat (limited to 'datarouter-prov/src/test')
-rwxr-xr-xdatarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/StatisticsServletTest.java8
1 files changed, 0 insertions, 8 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 64d13e94..3438627d 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
@@ -125,7 +125,6 @@ public class StatisticsServletTest {
@Test
public void Given_Request_Is_HTTP_GET_With_GroupId_But_No_FeedId_Parameters_Then_Request_Succeeds()
throws Exception {
- addAliasForSubstringIndex();
ServletOutputStream outStream = mock(ServletOutputStream.class);
when(response.getOutputStream()).thenReturn(outStream);
statisticsServlet.doGet(request, response);
@@ -135,7 +134,6 @@ public class StatisticsServletTest {
@Test
public void Given_Request_Is_HTTP_GET_With_GroupId_And_FeedId_Parameters_Then_Request_Succeeds()
throws Exception {
- addAliasForSubstringIndex();
when(request.getParameter("feedid")).thenReturn("1");
when(request.getParameter("statusCode")).thenReturn("500");
ServletOutputStream outStream = mock(ServletOutputStream.class);
@@ -158,10 +156,4 @@ public class StatisticsServletTest {
when(request.getParameter("groupid")).thenReturn("1");
when(request.getParameter("subid")).thenReturn("1");
}
- private void addAliasForSubstringIndex() throws SQLException {
- String sql = "CREATE ALIAS IF NOT EXISTS `SUBSTRING_INDEX`AS $$ String Function(String one, String two, String three){ return \"url\"; }$$;";
- Connection conn = db.getConnection();
- PreparedStatement pst = conn.prepareStatement(sql);
- pst.execute();
- }
}