@Test public void test_getDepartmentDesignation() { DepartmentDesignation departmentDesignation = new DepartmentDesignation().builder().departmentCode("code").id(1L).tenantId("default").build(); when(departmentDesignationRepository.findForId(any(Long.class))).thenReturn(departmentDesignation); DepartmentDesignation result = departmentDesignationService.getDepartmentDesignation(1L); assertThat(result).isEqualTo(departmentDesignation); }
public DepartmentDesignation getDepartmentDesignation(Long id) { return departmentDesignationRepository.findForId(id); }
DepartmentDesignationService { public DepartmentDesignation getDepartmentDesignation(Long id) { return departmentDesignationRepository.findForId(id); } }
DepartmentDesignationService { public DepartmentDesignation getDepartmentDesignation(Long id) { return departmentDesignationRepository.findForId(id); }  }
DepartmentDesignationService { public DepartmentDesignation getDepartmentDesignation(Long id) { return departmentDesignationRepository.findForId(id); }  DepartmentDesignation getDepartmentDesignation(Long id); DepartmentDesignation getByDepartmentAndDesignation(String departmentCode, String designationCode, String tenantId); void create(DepartmentDesignation departmentDesignation); }
DepartmentDesignationService { public DepartmentDesignation getDepartmentDesignation(Long id) { return departmentDesignationRepository.findForId(id); }  DepartmentDesignation getDepartmentDesignation(Long id); DepartmentDesignation getByDepartmentAndDesignation(String departmentCode, String designationCode, String tenantId); void create(DepartmentDesignation departmentDesignation);  }