Package info.archinnov.achilles.test.integration.entity.ClusteredEntityWithObjectValue

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithObjectValue.Holder


  private ObjectMapper mapper = new ObjectMapper();

  @Test
  public void should_persist_and_find() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), "name");
    Holder holder = new Holder("content");
    entity = new ClusteredEntityWithObjectValue(compoundKey, holder);

    manager.insert(entity);

    ClusteredEntityWithObjectValue found = manager.find(ClusteredEntityWithObjectValue.class, compoundKey);
View Full Code Here


  }

  @Test
  public void should_persist_and_get_proxy() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), "name");
    Holder holder = new Holder("content");
    entity = new ClusteredEntityWithObjectValue(compoundKey, holder);

    manager.insert(entity);

    ClusteredEntityWithObjectValue found = manager.getProxy(ClusteredEntityWithObjectValue.class, compoundKey);
View Full Code Here

  @Test
  public void should_merge_modifications() throws Exception {

    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), "name");
    Holder holder = new Holder("content");
    Holder newHolder = new Holder("new_content");
    entity = new ClusteredEntityWithObjectValue(compoundKey, holder);

    entity = manager.insert(entity);

    entity.setValue(newHolder);
View Full Code Here

  }

  @Test
  public void should_delete() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), "name");
    Holder holder = new Holder("content");
    entity = new ClusteredEntityWithObjectValue(compoundKey, holder);

    entity = manager.insert(entity);

    manager.delete(entity);
View Full Code Here

  @Test
  public void should_refresh() throws Exception {

    long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
    compoundKey = new ClusteredKey(partitionKey, "name");
    Holder holder = new Holder("content");
    Holder newHolder = new Holder("new_content");

    entity = new ClusteredEntityWithObjectValue(compoundKey, holder);

    entity = manager.insert(entity);
View Full Code Here

  private void insertValues(long partitionKey, int count) {
    String namePrefix = "name";

    for (int i = 1; i <= count; i++) {
      insertClusteredEntity(partitionKey, namePrefix + i, new Holder(namePrefix + i));
    }
  }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithObjectValue.Holder

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.