Examples of lookedBy()


Examples of models.Article.lookedBy()

       
        // No activity for the article
        assertEquals(0, Activity.count("article = ?", a));
        assertNull(Activity.find("article = ?", a).first());
       
        a.lookedBy(member);
       
        // One activity for the article
        assertEquals(1, Activity.count("article = ?", a));
        Activity act = Activity.find("article = ?", a).first();
        assertActivity(act);
View Full Code Here

Examples of models.Article.lookedBy()

        // No activity for the article
        assertEquals(0, Activity.count("article = ?", a));
        assertNull(Activity.find("article = ?", a).first());
       
        // article looked by one of speakers
        a.lookedBy(a.author);
       
        // Still no activity for the article
        assertEquals(0, Activity.count("article = ?", a));
        assertNull(Activity.find("article = ?", a).first());
    }
View Full Code Here

Examples of models.Article.lookedBy()

        // No activity for the article
        assertEquals(0, Activity.count("article = ?", a));
        assertNull(Activity.find("article = ?", a).first());
       
        // A not connected user looked at the article
        a.lookedBy(null);
       
        // Still no activity for the article
        assertEquals(0, Activity.count("article = ?", a));
        assertNull(Activity.find("article = ?", a).first());
    }
View Full Code Here

Examples of models.Member.lookedBy()

        // Non activity for member
        assertNull(Activity.find("select a from Activity a where a.member = ?", member).first());

        // Our member looked at an other member profile
        final Member other = createMember("other");
        other.lookedBy(member);
       
        // One activity for member
        Activity a = Activity.find("select a from Activity a where a.member = ?", member).first();
        assertActivity(a);
        assertTrue(a instanceof LookProfileActivity);
View Full Code Here

Examples of models.Session.lookedBy()

       
        // No activity for the session
        assertEquals(0, Activity.count("session = ?", s));
        assertNull(Activity.find("session = ?", s).first());
       
        s.lookedBy(member);
       
        // One activity for the session
        assertEquals(1, Activity.count("session = ?", s));
        Activity a = Activity.find("session = ?", s).first();
        assertActivity(a);
View Full Code Here

Examples of models.Session.lookedBy()

        // No activity for the session
        assertEquals(0, Activity.count("session = ?", s));
        assertNull(Activity.find("session = ?", s).first());
       
        // Session looked by one of speakers
        s.lookedBy(s.speakers.iterator().next());
       
        // Still no activity for the session
        assertEquals(0, Activity.count("session = ?", s));
        assertNull(Activity.find("session = ?", s).first());
    }
View Full Code Here

Examples of models.Session.lookedBy()

        // No activity for the session
        assertEquals(0, Activity.count("session = ?", s));
        assertNull(Activity.find("session = ?", s).first());
       
        // A not connected user looked at the session
        s.lookedBy(null);
       
        // Still no activity for the session
        assertEquals(0, Activity.count("session = ?", s));
        assertNull(Activity.find("session = ?", s).first());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.