Package com.saasovation.collaboration.application.calendar.data

Examples of com.saasovation.collaboration.application.calendar.data.CalendarEntryData


        CalendarEntry calendarEntry = this.calendarEntryAggregate();

        DomainRegistry.calendarEntryRepository().save(calendarEntry);

        CalendarEntryData calendarEntryData =
                calendarEntryQueryService
                    .calendarEntryDataOfId(
                            calendarEntry.tenant().id(),
                            calendarEntry.calendarEntryId().id());

        assertNotNull(calendarEntryData);
        assertNotNull(calendarEntryData.getAlarmAlarmUnitsType());
        assertNotNull(calendarEntryData.getCalendarEntryId());
        assertNotNull(calendarEntryData.getCalendarId());
        assertEquals(calendarEntry.calendarId().id(), calendarEntryData.getCalendarId());
        assertNotNull(calendarEntryData.getDescription());
        assertNotNull(calendarEntryData.getLocation());
        assertNotNull(calendarEntryData.getOwnerEmailAddress());
        assertNotNull(calendarEntryData.getOwnerIdentity());
        assertNotNull(calendarEntryData.getOwnerName());
        assertNotNull(calendarEntryData.getRepetitionType());
        assertEquals(calendarEntry.tenant().id(), calendarEntryData.getTenantId());
        assertNotNull(calendarEntryData.getInvitees());
        assertTrue(calendarEntryData.getInvitees().isEmpty());
    }
View Full Code Here


            assertNotNull(queriedCalendarEntries);
            assertFalse(queriedCalendarEntries.isEmpty());
            assertEquals(1, queriedCalendarEntries.size());

            CalendarEntryData calendarEntryData = queriedCalendarEntries.iterator().next();

            assertNotNull(calendarEntryData.getAlarmAlarmUnitsType());
            assertNotNull(calendarEntryData.getCalendarEntryId());
            assertNotNull(calendarEntryData.getCalendarId());
            assertEquals(calendarEntries[0].calendarId().id(), calendarEntryData.getCalendarId());
            assertNotNull(calendarEntryData.getDescription());
            assertNotNull(calendarEntryData.getLocation());
            assertNotNull(calendarEntryData.getOwnerEmailAddress());
            assertNotNull(calendarEntryData.getOwnerIdentity());
            assertNotNull(calendarEntryData.getOwnerName());
            assertNotNull(calendarEntryData.getRepetitionType());
        }

        Collection<CalendarEntryData> queriedCalendarEntries =
                calendarEntryQueryService
                    .timeSpanningCalendarEntries(
View Full Code Here

TOP

Related Classes of com.saasovation.collaboration.application.calendar.data.CalendarEntryData

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.