Package net.caprazzi.minima.model

Examples of net.caprazzi.minima.model.MasterRecord


   
    db.get("minimaster", new GetTestHelp() {
      @Override
      public void found(String key, int rev, byte[] data) {
        assertEquals(1, rev);
        MasterRecord record = MasterRecord.fromJson(data, MasterRecord.class);
        assertEquals("master_record", record.getTypeName());
        assertEquals("1", record.getDbVersion());
      }
    });
   
  }
View Full Code Here


 
  @Test
  public void getMasterRecord_should_return_valid_record() throws JsonParseException, IOException {
    byte[] record = minimaDb.getMasterRecord();
    System.out.println(new String(record));
    MasterRecord rec = MasterRecord.fromJson(record, MasterRecord.class);
    assertEquals("1", rec.getDbVersion());
  }
View Full Code Here

    createList(ID_LIST_DOING, "doing", 65536 * 2);
    createList(ID_LIST_DONE, "done", 65536 * 3);
  }

  byte[] getMasterRecord() {
    MasterRecord record = new MasterRecord();
    record.setDbVersion(DB_VERSION);
    return record.toJson();
  }
View Full Code Here

TOP

Related Classes of net.caprazzi.minima.model.MasterRecord

Copyright © 2018 www.massapicom. 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.