String getProjDirList() throws Exception { String stoken = login(); WebResponse resp = readGet(_proj_path + "?name=*", stoken); assertEquals("Project Get Result Code", 200, resp.getCode()); String dstr = resp.getMsg(); assertNotNull("Project Get Result Non-Null Message", dstr); String res = ""; String[] dlist = dstr.split(","); for (String ds : dlist) if (_p.matcher(ds).matches()) res += "," + ds; logout(stoken, "After Dir Check"); return res.equals("") ? "" : res.substring(1); }
@After public void tearDown() throws Exception { logout(); }