Package com.impetus.client.twitter.entities

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


        Assert.assertFalse(users.isEmpty());
        Assert.assertTrue(users.size() == 1);
        UserCassandra user = users.get(0);
        Assert.assertNotNull(user);
        Assert.assertEquals(userId1, user.getUserId());
        ProfessionalDetailCassandra pd = user.getProfessionalDetail();
        Assert.assertNotNull(pd);
        Assert.assertEquals(cal, pd.getGraduationDay());
        twitter.closeEntityManager();

        twitter.createEntityManager();

        Calendar cal2 = Calendar.getInstance();
        cal2.setTime(new Date(1344079068888l));
        List<UserCassandra> users2 = twitter.findUserByGraduationDay(cal2);
        Assert.assertNotNull(users2);
        Assert.assertFalse(users2.isEmpty());
        Assert.assertTrue(users2.size() == 1);
        UserCassandra user2 = users2.get(0);
        Assert.assertNotNull(user2);
        Assert.assertEquals(userId2, user2.getUserId());
        ProfessionalDetailCassandra pd2 = user2.getProfessionalDetail();
        Assert.assertNotNull(pd2);
        Assert.assertEquals(cal2, pd2.getGraduationDay());
        twitter.closeEntityManager();
    }
View Full Code Here


    {
        UserCassandra user1 = new UserCassandra(userId1, "Amresh", "password1", "married", 25);

        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date(1344079067777l));
        user1.setProfessionalDetail(new ProfessionalDetailCassandra(1234567, "Labs", false, 31, 'C', (byte) 8,
                (short) 5, (float) 10.0, 163.12, new Date(Long.parseLong("1344079065781")), new Date(Long
                        .parseLong("1344079067623")), new Date(Long.parseLong("1344079069105")), 2, new Long(
                        3634521523423L), new Double(0.23452342343), new java.sql.Date(new Date(Long
                        .parseLong("1344079061111")).getTime()), new java.sql.Time(new Date(Long
                        .parseLong("1344079062222")).getTime()), new java.sql.Timestamp(new Date(Long
View Full Code Here

    {
        UserCassandra user2 = new UserCassandra(userId2, "Saurabh", "password2", "single", 25);

        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date(1344079068888l));
        user2.setProfessionalDetail(new ProfessionalDetailCassandra(1234568, "ODC", true, 32, 'A', (byte) 10,
                (short) 8, (float) 9.80, 323.3, new Date(Long.parseLong("1344079063412")), new Date(Long
                        .parseLong("1344079068266")), new Date(Long.parseLong("1344079061078")), 5, new Long(
                        25423452343L), new Double(0.76452343), new java.sql.Date(new Date(Long
                        .parseLong("1344079064444")).getTime()), new java.sql.Time(new Date(Long
                        .parseLong("1344079065555")).getTime()), new java.sql.Timestamp(new Date(Long
View Full Code Here

TOP

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

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.