Package in.partake.model.dto

Examples of in.partake.model.dto.UserSentMessage


public class UserSentMessageTestDataProvider extends TestDataProvider<UserSentMessage> {
    @Override
    public UserSentMessage create(long pkNumber, String pkSalt, int objNumber) {
        UUID uuid = new UUID(pkNumber, pkSalt.hashCode());
        List<String> receiverIds = new ArrayList<String>();
        return new UserSentMessage(uuid, "senderId", receiverIds, "eventId", "messageId", new DateTime(objNumber), null);
    }
View Full Code Here


    }

    @Override
    public List<UserSentMessage> createSamples() {
        List<UserSentMessage> array = new ArrayList<UserSentMessage>();
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", new ArrayList<String>(), "eventId", "messageId", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 1), "senderId", new ArrayList<String>(), "eventId", "messageId", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId1", new ArrayList<String>(), "eventId", "messageId", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", Arrays.asList(new String[] { "hoge" }), "eventId", "messageId", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", new ArrayList<String>(), "eventId1", "messageId", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", new ArrayList<String>(), "eventId", "messageId1", new DateTime(0L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", new ArrayList<String>(), "eventId", "messageId", new DateTime(1L), null));
        array.add(new UserSentMessage(new UUID(0, 0), "senderId", new ArrayList<String>(), "eventId", "messageId", new DateTime(0L), new DateTime(2L)));
        return array;
    }
View Full Code Here

import org.codehaus.jackson.node.ObjectNode;

class EntityUserSentMessageMapper extends Postgres9EntityDataMapper<UserSentMessage> {
    public UserSentMessage map(ObjectNode obj) {
        return new UserSentMessage(obj).freeze();
    }
View Full Code Here

TOP

Related Classes of in.partake.model.dto.UserSentMessage

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.