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

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithEnumCompoundKey.ClusteredKey


  private ClusteredKey compoundKey;

  @Test
  public void should_persist_and_get_reference() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), Type.AUDIO);

    entity = new ClusteredEntityWithEnumCompoundKey(compoundKey, "clustered_value");

    manager.insert(entity);
View Full Code Here


    assertThat(found.getValue()).isEqualTo("clustered_value");
  }

  @Test
  public void should_persist_and_find() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), Type.AUDIO);

    entity = new ClusteredEntityWithEnumCompoundKey(compoundKey, "clustered_value");

    manager.insert(entity);
View Full Code Here

  }

  @Test
  public void should_update_modifications() throws Exception {

    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), Type.FILE);

    entity = new ClusteredEntityWithEnumCompoundKey(compoundKey, "clustered_value");

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

    assertThat(entity.getValue()).isEqualTo("new_clustered_value");
  }

  @Test
  public void should_delete() throws Exception {
    compoundKey = new ClusteredKey(RandomUtils.nextLong(0,Long.MAX_VALUE), Type.IMAGE);

    entity = new ClusteredEntityWithEnumCompoundKey(compoundKey, "clustered_value");

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

  @Test
  public void should_refresh() throws Exception {

    long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
    compoundKey = new ClusteredKey(partitionKey, Type.FILE);

    entity = new ClusteredEntityWithEnumCompoundKey(compoundKey, "clustered_value");

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

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithEnumCompoundKey.ClusteredKey

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.