Package net.caprazzi.minima.model

Examples of net.caprazzi.minima.model.StoryList


    verify(db).delete(eq("somekeyrx"), any(Delete.class));
  }
 
  @Test
  public void test_createList_should_put_list_in_db() throws Exception {
    StoryList list = new StoryList("id", "title", new BigDecimal(123));
    Meta<StoryList> meta = Meta.wrap("list", list);
    byte[] json = meta.toJson();
   
    minimaDb.createList("id", "title", 123);
   
View Full Code Here


      }
    });
  }

  public void createList(String id, String name, int pos) throws Exception {
    Meta<StoryList> wrap = Meta.wrap("list", new StoryList(id, name, new BigDecimal(pos)));
    byte[] json = wrap.toJson();
    db.put(id, 0, json, new Put() {

      @Override
      public void ok(String key, int rev) {
View Full Code Here

TOP

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

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.