@Test public void testGetCayenneRuntime() { MockServletContext context = new MockServletContext(); assertNull(WebUtil.getCayenneRuntime(context)); CayenneRuntime runtime = mock(CayenneRuntime.class); WebUtil.setCayenneRuntime(context, runtime); assertSame(runtime, WebUtil.getCayenneRuntime(context)); CayenneRuntime runtime1 = mock(CayenneRuntime.class); WebUtil.setCayenneRuntime(context, runtime1); assertSame(runtime1, WebUtil.getCayenneRuntime(context)); WebUtil.setCayenneRuntime(context, null); assertNull(WebUtil.getCayenneRuntime(context)); }
public static CayenneRuntime getCayenneRuntime(ServletContext context) { return (CayenneRuntime) context.getAttribute(CAYENNE_RUNTIME_KEY); }
WebUtil { public static CayenneRuntime getCayenneRuntime(ServletContext context) { return (CayenneRuntime) context.getAttribute(CAYENNE_RUNTIME_KEY); } }
WebUtil { public static CayenneRuntime getCayenneRuntime(ServletContext context) { return (CayenneRuntime) context.getAttribute(CAYENNE_RUNTIME_KEY); }  }
WebUtil { public static CayenneRuntime getCayenneRuntime(ServletContext context) { return (CayenneRuntime) context.getAttribute(CAYENNE_RUNTIME_KEY); }  static CayenneRuntime getCayenneRuntime(ServletContext context); static void setCayenneRuntime(ServletContext context, CayenneRuntime runtime); }
WebUtil { public static CayenneRuntime getCayenneRuntime(ServletContext context) { return (CayenneRuntime) context.getAttribute(CAYENNE_RUNTIME_KEY); }  static CayenneRuntime getCayenneRuntime(ServletContext context); static void setCayenneRuntime(ServletContext context, CayenneRuntime runtime);  }