@Test public void test_create() { DepartmentDesignation departmentDesignation = new DepartmentDesignation().builder().departmentCode("code").id(1L).tenantId("default").build(); doNothing().when(departmentDesignationRepository).create(any(DepartmentDesignation.class)); departmentDesignationService.create(departmentDesignation); verify(departmentDesignationRepository).create(any(DepartmentDesignation.class)); }
public void create(DepartmentDesignation departmentDesignation) { departmentDesignationRepository.create(departmentDesignation); }
DepartmentDesignationService { public void create(DepartmentDesignation departmentDesignation) { departmentDesignationRepository.create(departmentDesignation); } }
DepartmentDesignationService { public void create(DepartmentDesignation departmentDesignation) { departmentDesignationRepository.create(departmentDesignation); }  }
DepartmentDesignationService { public void create(DepartmentDesignation departmentDesignation) { departmentDesignationRepository.create(departmentDesignation); }  DepartmentDesignation getDepartmentDesignation(Long id); DepartmentDesignation getByDepartmentAndDesignation(String departmentCode, String designationCode, String tenantId); void create(DepartmentDesignation departmentDesignation); }
DepartmentDesignationService { public void create(DepartmentDesignation departmentDesignation) { departmentDesignationRepository.create(departmentDesignation); }  DepartmentDesignation getDepartmentDesignation(Long id); DepartmentDesignation getByDepartmentAndDesignation(String departmentCode, String designationCode, String tenantId); void create(DepartmentDesignation departmentDesignation);  }