/**
  * Test basedir feature.
  *
  * @exception Exception if a test error occurs
  */
 public void testBaseDir() throws Exception {
   String path = "dpml";
   Resource resource = getLibrary().getResource(path);
   File basedir = resource.getBaseDir();
   assertNotNull("basedir", basedir);
   String testPath = System.getProperty("project.test.dir");
   File test = new File(testPath);
   File dpml = new File(test, "dpml");
   File base = new File(dpml, "..").getCanonicalFile();
   assertEquals("basedir", base, basedir);
 }
 /**
  * Test basedir feature.
  *
  * @exception Exception if a test error occurs
  */
 public void testNullBaseDir() throws Exception {
   String path = "ant/ant";
   Resource resource = getLibrary().getResource(path);
   File basedir = resource.getBaseDir();
   assertNull("basedir", basedir);
 }