CalendarIntent extends BaseIntent<CalendarIntent> { public CalendarIntent eventId(@IntRange(from = 1) final long eventId) { this.eventId = eventId; return this; } CalendarIntent(); CalendarIntent type(@Type final int type); @Type int type(); CalendarIntent eventId(@IntRange(from = 1) final long eventId); long eventId(); CalendarIntent time(@IntRange(from = 0) final long time); long time(); CalendarIntent beginTime(@IntRange(from = 0) final long beginTime); long beginTime(); CalendarIntent endTime(@IntRange(from = 0) final long endTime); long endTime(); CalendarIntent title(@Nullable final CharSequence title); @NonNull CharSequence title(); CalendarIntent description(@Nullable final CharSequence description); @NonNull CharSequence description(); CalendarIntent location(@Nullable final CharSequence location); @NonNull CharSequence location(); CalendarIntent availability(@Availability final int availability); @Availability int availability(); static final int TYPE_VIEW; static final int TYPE_INSERT_EVENT; static final int TYPE_EDIT_EVENT; static final int TYPE_VIEW_EVENT; static final int AVAILABILITY_BUSY; static final int AVAILABILITY_FREE; static final int AVAILABILITY_TENTATIVE; }
@Test public void testEventId() { final CalendarIntent intent = new CalendarIntent(); intent.eventId(123523); assertThat(intent.eventId(), is(123523L)); }