com.google.api.services.calendar.model.CalendarListEntry

Here are the examples of the java api class com.google.api.services.calendar.model.CalendarListEntry taken from open source projects.

1. CalendarCalendarListIntegrationTest#isCalendarInList()

Project: camel
File: CalendarCalendarListIntegrationTest.java
protected boolean isCalendarInList(Calendar calendar) {
    CalendarList calendarList = requestBody("direct://LIST", null);
    java.util.List<CalendarListEntry> items = calendarList.getItems();
    boolean found = false;
    for (CalendarListEntry calendarListEntry : items) {
        if (calendar.getSummary().equals(calendarListEntry.getSummary())) {
            found = true;
        }
    }
    return found;
}

2. CalendarCalendarListIntegrationTest#testCalendarList()

Project: camel
File: CalendarCalendarListIntegrationTest.java
@Test
public void testCalendarList() throws Exception {
    Calendar calendar = getCalendar();
    assertTrue("Test calendar should be in the list", isCalendarInList(calendar));
    CalendarListEntry calendarFromGet = requestBody("direct://GET", calendar.getId());
    assertTrue(calendar.getId().equals(calendarFromGet.getId()));
}