Package in.partake.base

Examples of in.partake.base.DateTime


public class UserReceivedMessageTestDataProvider extends TestDataProvider<UserReceivedMessage> {
    @Override
    public UserReceivedMessage create(long pkNumber, String pkSalt, int objNumber) {
        UUID uuid = new UUID(pkNumber, pkSalt.hashCode());
        return new UserReceivedMessage(uuid, "senderId", "receiverId", "eventId", "messageId",
                false, MessageDelivery.SUCCESS, null, null, new DateTime(objNumber), null);
    }
View Full Code Here


    }

    @Override
    public List<UserReceivedMessage> createSamples() {
        List<UserReceivedMessage> array = new ArrayList<UserReceivedMessage>();
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 1), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId1", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId1", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId1", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId1", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", true, MessageDelivery.SUCCESS, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.FAIL, null, null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, new DateTime(1L), null, new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, new DateTime(1L), new DateTime(0L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(1L), null));
        array.add(new UserReceivedMessage(new UUID(0, 0), "senderId", "receiverId", "eventId", "messageId", false, MessageDelivery.SUCCESS, null, null, new DateTime(0L), new DateTime(1L)));
        return array;
    }
View Full Code Here

        IUserReceivedMessageAccess dao = daos.getUserReceivedMessageAccess();
        dao.truncate(con);

        dao.put(con, new UserReceivedMessage(USER_RECEIVED_MESSAGE_INQUEUE_ID,
                DEFAULT_SENDER_ID, DEFAULT_RECEIVER_ID, DEFAULT_EVENT_ID, DEFAULT_MESSAGE_ID.toString(),
                false, MessageDelivery.INQUEUE, null, null, new DateTime(0L), null));
    }
View Full Code Here

public class UserTicketTestDataProvider extends TestDataProvider<UserTicket> {

    @Override
    public UserTicket create(long pkNumber, String pkSalt, int objNumber) {
        UUID uuid = new UUID(pkNumber, pkSalt.hashCode());
        return new UserTicket(uuid.toString(), "userId" + objNumber, DEFAULT_EVENT_TICKET_ID, DEFAULT_EVENT_ID, "comment", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null);
    }
View Full Code Here

    }

    @Override
    public List<UserTicket> createSamples() {
        List<UserTicket> array = new ArrayList<UserTicket>();
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id1", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId1", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 1), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment1", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment1", "eventId", ParticipationStatus.RESERVED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.CHANGED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.ABSENT, null, new DateTime(0L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(1L), new DateTime(0L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(1L), null));
        array.add(new UserTicket("id", "userId", new UUID(0, 0), "comment", "eventId", ParticipationStatus.ENROLLED, ModificationStatus.ENROLLED, AttendanceStatus.PRESENT, null, new DateTime(0L), new DateTime(0L), new DateTime(0L)));
        return array;
    }
View Full Code Here

    }

    @Override
    public UserThumbnail create(long pkNumber, String pkSalt, int objNumber) {
        UUID id = new UUID(pkNumber, pkSalt.hashCode());
        return new UserThumbnail(id.toString(), "userId", "image/png", new byte[] { 0, 1, (byte) objNumber } , new DateTime(0L));
    }
View Full Code Here

    }

    @Override
    public List<UserThumbnail> createSamples() {
        List<UserThumbnail> array = new ArrayList<UserThumbnail>();
        array.add(new UserThumbnail("id", "userId", "image/png", new byte[] { 0, 1, 2 }, new DateTime(0L)));
        array.add(new UserThumbnail("id1", "userId", "image/png", new byte[] { 0, 1, 2 }, new DateTime(0L)));
        array.add(new UserThumbnail("id", "userId1", "image/png", new byte[] { 0, 1, 2 }, new DateTime(0L)));
        array.add(new UserThumbnail("id", "userId", "image/jpeg", new byte[] { 0, 1, 2 }, new DateTime(0L)));
        array.add(new UserThumbnail("id", "userId", "image/png", new byte[] { 0, 1, 3 }, new DateTime(0L)));
        array.add(new UserThumbnail("id", "userId", "image/png", new byte[] { 0, 1, 2 }, new DateTime(1L)));
        return array;
    }
View Full Code Here

    @Override
    public void createFixtures(PartakeConnection con, IPartakeDAOs daos) throws DAOException {
        IUserThumbnailAccess dao = daos.getThumbnailAccess();
        dao.truncate(con);

        dao.put(con, new UserThumbnail(DEFAULT_IMAGE_ID, DEFAULT_USER_ID, "byte/octet-stream", defaultImageContent, new DateTime(0L)));
    }
View Full Code Here

public class UserNotificationTestDataProvider extends TestDataProvider<UserNotification> {
    @Override
    public UserNotification create(long pkNumber, String pkSalt, int objNumber) {
        UUID uuid = new UUID(pkNumber, pkSalt.hashCode());
        return new UserNotification(uuid.toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(objNumber), null);
    }
View Full Code Here

    }

    @Override
    public List<UserNotification> createSamples() {
        List<UserNotification> array = new ArrayList<UserNotification>();
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 1).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 1), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId1", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_ENROLLED, MessageDelivery.SUCCESS, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.FAIL, new DateTime(0), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(1), null));
        array.add(new UserNotification(new UUID(0, 0).toString(), new UUID(1, 0), "userId", NotificationType.BECAME_TO_BE_CANCELLED, MessageDelivery.SUCCESS, new DateTime(0), new DateTime(1)));
        return array;
    }
View Full Code Here

TOP

Related Classes of in.partake.base.DateTime

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.