Example #1
0
 protected boolean protocheck(String path, String expected) {
   if (expected == null) expected = "";
   List<String> protocols = Misc.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;
 }