@Test public void testDestroyEPService() { logger.info("destroyEPService"); ServletContextMock sc = new ServletContextMock(); Utils.destroyEPService(sc); assertEquals(sc.getMap().size(), 0); Utils.initEPService(sc); Utils.destroyEPService(sc); assertEquals(sc.getMap().size(), 0); }
public static synchronized void destroyEPService(ServletContext sc) { EPServiceProvider epService = (EPServiceProvider) sc.getAttribute(EPSERV_ATTR_NAME); if (epService != null) { epService.destroy(); sc.removeAttribute(EPSERV_ATTR_NAME); } }
Utils { public static synchronized void destroyEPService(ServletContext sc) { EPServiceProvider epService = (EPServiceProvider) sc.getAttribute(EPSERV_ATTR_NAME); if (epService != null) { epService.destroy(); sc.removeAttribute(EPSERV_ATTR_NAME); } } }
Utils { public static synchronized void destroyEPService(ServletContext sc) { EPServiceProvider epService = (EPServiceProvider) sc.getAttribute(EPSERV_ATTR_NAME); if (epService != null) { epService.destroy(); sc.removeAttribute(EPSERV_ATTR_NAME); } }  }
Utils { public static synchronized void destroyEPService(ServletContext sc) { EPServiceProvider epService = (EPServiceProvider) sc.getAttribute(EPSERV_ATTR_NAME); if (epService != null) { epService.destroy(); sc.removeAttribute(EPSERV_ATTR_NAME); } }  static synchronized EPServiceProvider initEPService(ServletContext sc); static synchronized void destroyEPService(ServletContext sc); static Map<String, Object> JSONObject2Map(JSONObject jo); static JSONObject Event2JSONObject(EventBean event); static JSONObject Statement2JSONObject(EPStatement st); static boolean DoHTTPPost(String urlStr, String content); static void putCorrelatorAndTrans(HttpServletRequest req); static String getBodyAsString(HttpServletRequest request); static void setTimerRuleHeaders(JSONObject rule); static Boolean isValidURL(String url); }
Utils { public static synchronized void destroyEPService(ServletContext sc) { EPServiceProvider epService = (EPServiceProvider) sc.getAttribute(EPSERV_ATTR_NAME); if (epService != null) { epService.destroy(); sc.removeAttribute(EPSERV_ATTR_NAME); } }  static synchronized EPServiceProvider initEPService(ServletContext sc); static synchronized void destroyEPService(ServletContext sc); static Map<String, Object> JSONObject2Map(JSONObject jo); static JSONObject Event2JSONObject(EventBean event); static JSONObject Statement2JSONObject(EPStatement st); static boolean DoHTTPPost(String urlStr, String content); static void putCorrelatorAndTrans(HttpServletRequest req); static String getBodyAsString(HttpServletRequest request); static void setTimerRuleHeaders(JSONObject rule); static Boolean isValidURL(String url);  }