Package de.chris_soft.nanoarchive

Examples of de.chris_soft.nanoarchive.DB.deletePath()


    assertEquals("neuer Pfad", paths.get(0).obj2);
    assertEquals(1, db.getDocumentsFromPath(-1).size());
    db.changeDocumentPath(3312, pathID);
    assertEquals(0, db.getDocumentsFromPath(0).size());
    assertEquals(1, db.getDocumentsFromPath(pathID).size());
    db.deletePath(pathID);
    assertEquals(1, db.getDocumentsFromPath(0).size());
    assertEquals(0, db.getDocumentsFromPath(pathID).size());
    db.close();
  }
View Full Code Here


    db.addDocument(-1, pathID3, SAMPLE_DOCUMENT_FILE);
    assertEquals(2, db.getDocumentsFromPath(0).size());
    assertEquals(1, db.getDocumentsFromPath(pathID1).size());
    assertEquals(1, db.getDocumentsFromPath(pathID2).size());
    assertEquals(1, db.getDocumentsFromPath(pathID3).size());
    db.deletePath(pathID2);
    assertEquals(4, db.getDocumentsFromPath(0).size());
    assertEquals(1, db.getDocumentsFromPath(pathID1).size());
    db.close();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.