Exemplo n.º 1
0
 public TestCDMClient(String name, String[] argv) throws Exception {
   super(name);
   DapCache.flush();
   this.root = getDAP4Root();
   if (this.root == null) throw new Exception("dap4 root cannot be located");
   if (this.root.charAt(0) != '/' && !DapUtil.hasDriveLetter(this.root))
     this.root = "/" + this.root; // handle problem of windows paths
   this.datasetpath = this.root + "/" + TESTINPUTDIR;
   findServer(this.datasetpath);
   this.sourceurl = d4tsServer;
   System.out.println("Using source url " + this.sourceurl);
   defineAllTestcases(this.root, this.sourceurl);
   chooseTestcases();
 }
Exemplo n.º 2
0
 public static byte[] readbinaryfile(String filename) throws IOException {
   FileInputStream file = new FileInputStream(filename);
   return DapUtil.readbinaryfile(file);
 }