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

Examples of info.archinnov.achilles.test.integration.entity.ClusteredTweetId


  public void should_persist_and_find() throws Exception {
    Long userId = RandomUtils.nextLong(0,Long.MAX_VALUE);
    UUID tweetId = UUIDGen.getTimeUUID();
    Date creationDate = new Date();

    ClusteredTweetId id = new ClusteredTweetId(userId, tweetId, creationDate);

    ClusteredTweetEntity tweet = new ClusteredTweetEntity(id, "this is a tweet", userId, false);

    manager.insert(tweet);
View Full Code Here


    Long originalAuthorId = RandomUtils.nextLong(0,Long.MAX_VALUE);

    UUID tweetId = UUIDGen.getTimeUUID();
    Date creationDate = new Date();

    ClusteredTweetId id = new ClusteredTweetId(userId, tweetId, creationDate);

    ClusteredTweetEntity tweet = new ClusteredTweetEntity(id, "this is a tweet", userId, false);
    tweet = manager.insert(tweet);

    tweet.setContent("this is a new tweet2");
View Full Code Here

  public void should_delete() throws Exception {
    Long userId = RandomUtils.nextLong(0,Long.MAX_VALUE);
    UUID tweetId = UUIDGen.getTimeUUID();
    Date creationDate = new Date();

    ClusteredTweetId id = new ClusteredTweetId(userId, tweetId, creationDate);

    ClusteredTweetEntity tweet = new ClusteredTweetEntity(id, "this is a tweet", userId, false);

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

    Long userId = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Long originalAuthorId = RandomUtils.nextLong(0,Long.MAX_VALUE);
    UUID tweetId = UUIDGen.getTimeUUID();
    Date creationDate = new Date();

    ClusteredTweetId id = new ClusteredTweetId(userId, tweetId, creationDate);

    ClusteredTweetEntity tweet = new ClusteredTweetEntity(id, "this is a tweet", userId, false);

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

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.ClusteredTweetId

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.