Package com.impetus.kundera.rest.common

Examples of com.impetus.kundera.rest.common.MongoPrimeUser


        UUID timeLineId = UUID.randomUUID();
        Date currentDate = new Date();
        MongoCompoundKey key = new MongoCompoundKey("mevivs", 1, timeLineId);

        MongoPrimeUser timeLine = new MongoPrimeUser(key);
        timeLine.setKey(key);
        timeLine.setTweetBody("my first tweet");
        timeLine.setTweetDate(currentDate);

        MongoCompoundKey key1 = new MongoCompoundKey("john", 2, timeLineId);

        MongoPrimeUser timeLine2 = new MongoPrimeUser(key1);
        timeLine2.setKey(key1);
        timeLine2.setTweetBody("my second tweet");
        timeLine2.setTweetDate(currentDate);

        String mongoUser = JAXBUtils.toString(timeLine, MediaType.APPLICATION_JSON);
        Assert.assertNotNull(mongoUser);

        String mongoUser1 = JAXBUtils.toString(timeLine2, MediaType.APPLICATION_JSON);
View Full Code Here

TOP

Related Classes of com.impetus.kundera.rest.common.MongoPrimeUser

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.