Package models

Examples of models.SessionComment


        super(new CommentatorBadgeComputer());
    }

    protected void comment(Member m, Session s, final int nbComments) {
        for (int i = 0; i < nbComments; i++) {
            s.addComment(new SessionComment(member, s, "Un commentaire"));
        }
    }
View Full Code Here


        t.save();
       
        // Non activity for the session
        assertEquals(0, Activity.count("session = ?", t));
       
        SessionComment c = new SessionComment(member, t, "Un commentaire");
        t.addComment(c);
        t.save();
       
        // One activity for the session
        assertEquals(1, Activity.count("session = ?", t));
View Full Code Here

        t.save();
       
        // Non activity for the session
        assertEquals(0, Activity.count("session = ?", t));
       
        SessionComment c = new SessionComment(member, t, "Un commentaire");
        t.addComment(c);
        t.save();
       
        // Still no activity for the session
        assertEquals(0, Activity.count("session = ?", t));
View Full Code Here

                Logger.info("Generating dummy session comments for member "+m);

                final int nbComments = Dummy.randomInt(2*averageCommentsPerMember);
                for (int i = 0; i < nbComments; i++) {
                    Session s = sessions.get(Dummy.randomInt(sessions.size()));
                    s.addComment(new SessionComment(m, s, Dummy.randomText(3000)));
                    s.save();
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of models.SessionComment

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.