@Test public void givenUriWhenSplitThenReturnUriStringNotBlankTrue() { final String splitedString = UriUtils.splitUri(uriName); assertNotNull(splitedString); assertNotEquals("", splitedString); }
public static String splitUri(String uriString) { String splitedString; ParametersChecker.checkParameter("Uri string is a mandatory parameter", uriString); if (uriString.contains(SLASH)) { final String[] uriWithoutRootFolderTable = uriString.split(SLASH, 2); splitedString = uriWithoutRootFolderTable[1]; } else { splitedString = ""; } return splitedString; }
UriUtils { public static String splitUri(String uriString) { String splitedString; ParametersChecker.checkParameter("Uri string is a mandatory parameter", uriString); if (uriString.contains(SLASH)) { final String[] uriWithoutRootFolderTable = uriString.split(SLASH, 2); splitedString = uriWithoutRootFolderTable[1]; } else { splitedString = ""; } return splitedString; } }
UriUtils { public static String splitUri(String uriString) { String splitedString; ParametersChecker.checkParameter("Uri string is a mandatory parameter", uriString); if (uriString.contains(SLASH)) { final String[] uriWithoutRootFolderTable = uriString.split(SLASH, 2); splitedString = uriWithoutRootFolderTable[1]; } else { splitedString = ""; } return splitedString; } private  UriUtils(); }
UriUtils { public static String splitUri(String uriString) { String splitedString; ParametersChecker.checkParameter("Uri string is a mandatory parameter", uriString); if (uriString.contains(SLASH)) { final String[] uriWithoutRootFolderTable = uriString.split(SLASH, 2); splitedString = uriWithoutRootFolderTable[1]; } else { splitedString = ""; } return splitedString; } private  UriUtils(); static String splitUri(String uriString); }
UriUtils { public static String splitUri(String uriString) { String splitedString; ParametersChecker.checkParameter("Uri string is a mandatory parameter", uriString); if (uriString.contains(SLASH)) { final String[] uriWithoutRootFolderTable = uriString.split(SLASH, 2); splitedString = uriWithoutRootFolderTable[1]; } else { splitedString = ""; } return splitedString; } private  UriUtils(); static String splitUri(String uriString);  }