protected boolean protocheck(String path, String expected) { if(expected == null) expected = ""; List<String> protocols = DatasetUrl.getProtocols(path); StringBuilder buf = new StringBuilder(); for(String s : protocols) { buf.append(s); buf.append(":"); } String result = buf.toString(); boolean ok = expected.equals(result); System.err.printf("path=|%s| result=|%s| pass=%s\n", path, result, (ok ? "true" : "false")); System.err.flush(); return ok; }
protected void protocheck(String path, String expected) { if (expected == null) expected = ""; List<String> protocols = DatasetUrl.getProtocols(path); StringBuilder buf = new StringBuilder(); for (String s : protocols) { buf.append(s); buf.append(":"); } String result = buf.toString(); boolean ok = expected.equals(result); if (show || !ok) System.out.printf(" path=%s; result=%s; pass=%s\n", path, result, ok); Assert.assertEquals(path, expected, result); }
List<String> allprotocols = DatasetUrl.getProtocols(location);