Example #1
0
 //////////////////////////////////////////////////
 // Junit test methods
 @Test
 public void testServlet() throws Exception {
   DapCache.flush();
   for (ServletTest testcase : chosentests) {
     Assert.assertTrue(doOneTest(testcase));
   }
 }
 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();
 }