Search in sources :

Example 6 with Preview

use of de.djuelg.neuronizer.domain.model.preview.Preview in project Neuronizer by djuelg.

the class PreviewRepositoryImplTest method testGetPreviewCorrectHeader.

@Test
public void testGetPreviewCorrectHeader() {
    Iterable<Preview> previews = repository.getAll(new ItemsPerPreview(0));
    assertEquals("Header 1", previews.iterator().next().getSubtitle());
}
Also used : ItemsPerPreview(de.djuelg.neuronizer.domain.model.preview.ItemsPerPreview) Preview(de.djuelg.neuronizer.domain.model.preview.Preview) ItemsPerPreview(de.djuelg.neuronizer.domain.model.preview.ItemsPerPreview) MediumTest(android.support.test.filters.MediumTest) Test(org.junit.Test)

Aggregations

Preview (de.djuelg.neuronizer.domain.model.preview.Preview)6 ItemsPerPreview (de.djuelg.neuronizer.domain.model.preview.ItemsPerPreview)5 MediumTest (android.support.test.filters.MediumTest)3 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)2 NotePreview (de.djuelg.neuronizer.domain.model.preview.NotePreview)1 TodoListPreview (de.djuelg.neuronizer.domain.model.preview.TodoListPreview)1 PreviewViewModel (de.djuelg.neuronizer.presentation.ui.flexibleadapter.PreviewViewModel)1 NoteDAO (de.djuelg.neuronizer.storage.model.NoteDAO)1 TodoListDAO (de.djuelg.neuronizer.storage.model.TodoListDAO)1 Realm (io.realm.Realm)1