Package de.chris_soft.nanoarchive

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


   * @throws IOException
   */
  @Test
  public void testLabels() throws ClassNotFoundException, SQLException, IOException {
    DB db = new DB(DB_PATH);
    long labelID = db.createLabel("lucas");
    assertEquals("lucas", db.getLabelName(labelID));
    db.addLabelToDocument(3312L, labelID);
    List<Long> list = db.getDocumentsFromLabel(labelID);
    assertEquals(1, list.size());
    assertEquals(3312L, list.get(0).longValue());
View Full Code Here


    assertEquals(1, list.size());
    assertEquals(3312L, list.get(0).longValue());
    db.deleteLabel(labelID);
    list = db.getDocumentsFromLabel(labelID);
    assertEquals(0, list.size());
    labelID = db.createLabel("luisa");
    db.addLabelToDocument(3312L, labelID);
    list = db.getDocumentsFromLabel(labelID);
    assertEquals(1, list.size());
    assertEquals(3312L, list.get(0).longValue());
    list = db.getLabelsFromDocument(3312L);
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.