Search in sources :

Example 1 with CustomEventType

use of com.alexstyl.specialdates.events.peopleevents.CustomEventType in project Memento-Calendar by alexstyl.

the class EventLabelCreatorTest method customIsCalculatedCorrectly.

@Test
public void customIsCalculatedCorrectly() {
    Date date = Date.Companion.on(12, DECEMBER);
    ContactEvent event = contactEventOn(date, new CustomEventType("H4x"));
    String label = creator.createFor(event);
    assertThat(label).isEqualTo("H4x on December 12");
}
Also used : ContactEvent(com.alexstyl.specialdates.date.ContactEvent) CustomEventType(com.alexstyl.specialdates.events.peopleevents.CustomEventType) Date(com.alexstyl.specialdates.date.Date) Test(org.junit.Test)

Aggregations

ContactEvent (com.alexstyl.specialdates.date.ContactEvent)1 Date (com.alexstyl.specialdates.date.Date)1 CustomEventType (com.alexstyl.specialdates.events.peopleevents.CustomEventType)1 Test (org.junit.Test)1