@Test public void trimSessionPath() { assertEquals("", SeleniumSessions.trimSessionPath("/session/sessionId")); assertEquals("/request", SeleniumSessions.trimSessionPath("/session/id/request")); assertEquals("/another/one", SeleniumSessions.trimSessionPath("/session/id/another/one")); }
public static String trimSessionPath(String pathInfo) { return pathInfo.replaceFirst("/session/" + getSessionIdFromPath(pathInfo), ""); }
SeleniumSessions { public static String trimSessionPath(String pathInfo) { return pathInfo.replaceFirst("/session/" + getSessionIdFromPath(pathInfo), ""); } }
SeleniumSessions { public static String trimSessionPath(String pathInfo) { return pathInfo.replaceFirst("/session/" + getSessionIdFromPath(pathInfo), ""); } SeleniumSessions(GridRegistry registry); }
SeleniumSessions { public static String trimSessionPath(String pathInfo) { return pathInfo.replaceFirst("/session/" + getSessionIdFromPath(pathInfo), ""); } SeleniumSessions(GridRegistry registry); URL getRemoteHostForSession(String sessionId); void refreshTimeout(String sessionId); static String getSessionIdFromPath(String pathInfo); static String trimSessionPath(String pathInfo); }
SeleniumSessions { public static String trimSessionPath(String pathInfo) { return pathInfo.replaceFirst("/session/" + getSessionIdFromPath(pathInfo), ""); } SeleniumSessions(GridRegistry registry); URL getRemoteHostForSession(String sessionId); void refreshTimeout(String sessionId); static String getSessionIdFromPath(String pathInfo); static String trimSessionPath(String pathInfo);  }