@Test public void testGetAll() { final int count = 10; final List<Journal> journals = ServiceTestHelper.createJournals(count); when(this.journalServiceBean.findAll()).thenReturn(journals); final List<JournalModel> result = this.journalsFeService.getAll(); BDDAssertions.then(result).isNotNull(); BDDAssertions.then(result.size()).isEqualTo(count); }
public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); }
JournalsFeService { public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); } }
JournalsFeService { public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); } JournalsFeService(final JournalServiceBean journalServiceBean); }
JournalsFeService { public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); } JournalsFeService(final JournalServiceBean journalServiceBean); List<JournalModel> getAll(); }
JournalsFeService { public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); } JournalsFeService(final JournalServiceBean journalServiceBean); List<JournalModel> getAll();  }