Search in sources :

Example 1 with StandardEventType

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

the class StandardEventTypeTest method mapsTypeBirthdayIdToBirthdayEvent.

@Test
public void mapsTypeBirthdayIdToBirthdayEvent() {
    StandardEventType eventType = StandardEventType.fromId(TYPE_BIRTHDAY);
    assertThat(eventType).isEqualTo(StandardEventType.BIRTHDAY);
}
Also used : StandardEventType(com.alexstyl.specialdates.events.peopleevents.StandardEventType) Test(org.junit.Test)

Example 2 with StandardEventType

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

the class StandardEventTypeTest method mapsTypeNamedayIdToNamedayEvent.

@Test
public void mapsTypeNamedayIdToNamedayEvent() {
    StandardEventType eventType = StandardEventType.fromId(TYPE_NAMEDAY);
    assertThat(eventType).isEqualTo(StandardEventType.NAMEDAY);
}
Also used : StandardEventType(com.alexstyl.specialdates.events.peopleevents.StandardEventType) Test(org.junit.Test)

Aggregations

StandardEventType (com.alexstyl.specialdates.events.peopleevents.StandardEventType)2 Test (org.junit.Test)2