@Test public void canFindByName() { LicenseeTask licenseeTaskToVerify = licenseeTaskRepository.findByName(licenseeTask.getName()); assertNotNull(licenseeTaskToVerify); }
@Before public void setUp() { licenseeTask = new LicenseeTask(); licenseeTask.setName("Fix"); licenseeTask = licenseeTaskRepository.save(licenseeTask); }