Package com.goodow.realtime.store

Examples of com.goodow.realtime.store.Model


  @Test
  public void test() {
    store.load("users/larry", new Handler<Document>() {
      @Override
      public void handle(Document doc) {
        Model mod = doc.getModel();
        CollaborativeMap root = mod.getRoot();
        VertxAssert.assertEquals("Larry Tin", root.<CollaborativeString> get("name").getText());
        VertxAssert.testComplete();
      }
    }, new Handler<Model>() {
      @Override
      public void handle(Model mod) {
        CollaborativeString str = mod.createString("Larry Tin");
        mod.getRoot().set("name", str);
      }
    }, null);
  }
View Full Code Here

TOP

Related Classes of com.goodow.realtime.store.Model

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.