Package org.eurekastreams.server.action.request.transformer

Examples of org.eurekastreams.server.action.request.transformer.RequestTransformer


     * Tests transform.
     */
    @Test
    public void testTransform()
    {
        RequestTransformer sut = new SetCurrentUserNotificationPreferencesTransformer(notifierTypes, categories);
        ActionContext ctx = TestContextCreator.createPrincipalActionContext(
                (Serializable) Arrays.asList(dto1, dto2, dto3), null, PERSON_ID);
        SetUserNotificationFilterPreferencesRequest result = (SetUserNotificationFilterPreferencesRequest) sut
                .transform(ctx);

        assertEquals(PERSON_ID, result.getPersonId());
        Collection<NotificationFilterPreferenceDTO> list = result.getPrefList();
        assertEquals(1, list.size());
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.transformer.RequestTransformer

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.