Search in sources :

Example 11 with TodoListHeaderDAO

use of de.djuelg.neuronizer.storage.model.TodoListHeaderDAO in project Neuronizer by djuelg.

the class TodoListRepositoryImplTest method testTodoListHeaderInsert.

@Test
public void testTodoListHeaderInsert() {
    TodoListHeader header = createHeader();
    boolean success = repository.insert(header);
    assertTrue(success);
    TodoListHeaderDAO dao = realm.where(TodoListHeaderDAO.class).equalTo("uuid", header.getUuid()).findFirst();
    assertNotNull(dao);
}
Also used : TodoListHeader(de.djuelg.neuronizer.domain.model.todolist.TodoListHeader) TodoListHeaderDAO(de.djuelg.neuronizer.storage.model.TodoListHeaderDAO) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test)

Aggregations

TodoListHeaderDAO (de.djuelg.neuronizer.storage.model.TodoListHeaderDAO)11 Realm (io.realm.Realm)8 TodoListHeader (de.djuelg.neuronizer.domain.model.todolist.TodoListHeader)5 MediumTest (android.support.test.filters.MediumTest)2 TodoListHeaderDAOConverter (de.djuelg.neuronizer.storage.converter.TodoListHeaderDAOConverter)2 TodoListDAO (de.djuelg.neuronizer.storage.model.TodoListDAO)2 TodoListItemDAO (de.djuelg.neuronizer.storage.model.TodoListItemDAO)2 ArrayList (java.util.ArrayList)2 Test (org.junit.Test)2 TodoList (de.djuelg.neuronizer.domain.model.preview.TodoList)1 TodoListPreview (de.djuelg.neuronizer.domain.model.preview.TodoListPreview)1 TodoListItem (de.djuelg.neuronizer.domain.model.todolist.TodoListItem)1 TodoListSection (de.djuelg.neuronizer.domain.model.todolist.TodoListSection)1