Examples of GetStreamActivitySubscriptionDbMapper


Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecutePersonSubscribed()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.PERSON);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(142, 98);
        assertTrue(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecutePersonNotSubscribed()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.PERSON);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(98, 99);
        assertFalse(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecutePersonNotFollowing()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.PERSON);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(42, 142);
        assertFalse(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecuteGroupSubscribed()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.GROUP);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(98, 1);
        assertTrue(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecuteGroupNotSubscribed()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.GROUP);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(99, 1);
        assertFalse(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests execute.
     */
    @Test
    public void testExecuteGroupNotFollowing()
    {
        sut = new GetStreamActivitySubscriptionDbMapper(EntityType.GROUP);
        ((BaseDomainMapper) sut).setEntityManager(getEntityManager());

        GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(99, 2);
        assertFalse(sut.execute(request));
    }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.GetStreamActivitySubscriptionDbMapper

     * Tests attempting to create for unsupported type.
     */
    @Test(expected = Exception.class)
    public void testConstructInvalidType()
    {
        new GetStreamActivitySubscriptionDbMapper(EntityType.RESOURCE);
    }
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.