Examples of disassociateAll()


Examples of com.vercer.engine.persist.annotation.AnnotationObjectDatastore.disassociateAll()

    container.theEnumSet = myEnums;
   
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    Key key = datastore.store(container);
   
    datastore.disassociateAll();
   
    EnumContainer loaded = datastore.load(key);
   
    Assert.assertTrue(loaded.theEnumSet instanceof EnumSet<?>);
    Assert.assertTrue(loaded.theEnumSet.size() == 2);
View Full Code Here

Examples of com.vercer.engine.persist.annotation.AnnotationObjectDatastore.disassociateAll()

    c12.field = "c12";
    b1.cs = Lists.newArrayList(c11, c12);
   
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    Key key = datastore.store(a);
    datastore.disassociateAll();
    A reloaded = datastore.load(key);
   
    Assert.assertNull(reloaded.bs.get(0).cs.get(0).field);
  }
}
View Full Code Here

Examples of com.vercer.engine.persist.annotation.AnnotationObjectDatastore.disassociateAll()

    created.initialised.put(67l, new Contained("dated today", 18));
   
    AnnotationObjectDatastore datastore = new AnnotationObjectDatastore();
    Key key = datastore.store(created);
   
    datastore.disassociateAll();
   
    Object loaded = datastore.load(key);
   
    Assert.assertEquals(created, loaded);
  }
View Full Code Here

Examples of com.vercer.engine.persist.annotation.AnnotationObjectDatastore.disassociateAll()

    TypeWithEnum thing = new TypeWithEnum();
    thing.watsit = MyEnum.TWOK10;
    item.things.add(thing);
    item.things.add(null);
   
    datastore.disassociateAll();
   
    TypeWithCollections loaded = datastore.load(key);
    Assert.assertNotNull(loaded);
  }
}
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.