Search in sources :

Example 11 with Event

use of tech.aroma.thrift.events.Event in project aroma-data-operations by RedRoma.

the class MemoryActivityRepositoryTest method testGetAllEventsFor.

@Test
public void testGetAllEventsFor() throws Exception {
    for (Event element : events) {
        instance.saveEvent(element, user);
    }
    List<Event> result = instance.getAllEventsFor(user);
    assertThat(result, is(events));
}
Also used : Event(tech.aroma.thrift.events.Event) Test(org.junit.Test)

Aggregations

Event (tech.aroma.thrift.events.Event)11 Test (org.junit.Test)7 User (tech.aroma.thrift.User)2 IntegrationTest (tech.sirwellington.alchemy.annotations.testing.IntegrationTest)2 Row (com.datastax.driver.core.Row)1 RequestAssertions.validUser (tech.aroma.data.assertions.RequestAssertions.validUser)1