Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.GetStreamActivitySubscriptionMapperRequest


    public void testExecute()
    {
        final String streamUID = "stream";
        final long streamId = 55L;
        long userId = 44L;
        final GetStreamActivitySubscriptionMapperRequest request = new GetStreamActivitySubscriptionMapperRequest(
                userId, streamId);

        context.checking(new Expectations()
        {
            {
View Full Code Here


          return false;
        }
        else
        {
        // get the user's preference
        return getNotificationPreferenceDAO.execute(new GetStreamActivitySubscriptionMapperRequest(inActionContext
                .getPrincipal().getId(), id));
        }
    }
View Full Code Here

    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

    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

    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

    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

    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

    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

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.GetStreamActivitySubscriptionMapperRequest

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.