@Test public void getAppName() { HttpServletRequest request = Mockito.mock(HttpServletRequest.class); Mockito.when(request.getHeader(eq(RequestUtil.CLIENT_APPNAME_HEADER))).thenReturn("test"); Assert.assertEquals(RequestUtil.getAppName(request), "test"); }
public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); }
RequestUtil { public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); } }
RequestUtil { public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); }  }
RequestUtil { public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); }  static String getRemoteIp(HttpServletRequest request); static String getAppName(HttpServletRequest request); static User getUser(HttpServletRequest request); static String getSrcUserName(HttpServletRequest request); }
RequestUtil { public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); }  static String getRemoteIp(HttpServletRequest request); static String getAppName(HttpServletRequest request); static User getUser(HttpServletRequest request); static String getSrcUserName(HttpServletRequest request); static final String CLIENT_APPNAME_HEADER; static final String NACOS_USER_KEY; }