Package com.impetus.client.twitter.entities

Examples of com.impetus.client.twitter.entities.PersonalDetailCassandra


    {
        twitter.createEntityManager();
        UserCassandra user1 = twitter.findUserById(userId1);
        assertUser1(user1);

        user1.setPersonalDetail(new PersonalDetailCassandra("Vivek", "unknown", "Married", 24));
        user1.addTweet(new TweetCassandra("My Third Tweet", "iPhone"));
        twitter.mergeUser(user1);

        UserCassandra user1AfterMerge = twitter.findUserById(userId1);
View Full Code Here


        Assert.assertFalse(users.isEmpty());
        Assert.assertTrue(users.size() == 1);

        UserCassandra user = users.get(0);
        Assert.assertNotNull(user);
        PersonalDetailCassandra pd = user.getPersonalDetail();
        Assert.assertNotNull(pd);
        Assert.assertTrue(pd.getPersonalDetailId() != null && !pd.getPersonalDetailId().trim().equals(""));
        Assert.assertTrue("Saurabh", pd.getName() != null);
        Assert.assertEquals("password2", pd.getPassword());
        Assert.assertEquals("single", pd.getRelationshipStatus());

        twitter.closeEntityManager();
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.PersonalDetailCassandra

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.