[R6] Refactor to "findDoctorsByActiveTrue"

This commit is contained in:
Mirna Gama 2024-01-06 19:16:29 -03:00 committed by Mirna Gama
parent f166bb930c
commit 03077db3a3
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import com.mirna.hospitalmanagementapi.domain.entities.Doctor;
import com.mirna.hospitalmanagementapi.domain.repositories.DoctorRepository;
/**
* This class is used to execute the findAll method from doctor repository
* This class is used to execute the findDoctorsByActiveTrue method from doctor repository
*
* @author Mirna Gama
* @version 1.0
@ -23,7 +23,7 @@ public class FindDoctorsUseCase {
private DoctorRepository doctorRepository;
/**
* Executes the findAll method from Doctor repository
* Executes the findDoctorsByActiveTrue method from Doctor repository
*
* @param pageable Pagination information, such as size and page number
*

View File

@ -65,11 +65,11 @@ public class FindDoctorsUseCaseTest {
}
/**
* Should execute findAll method with pagination successfully
* Should execute findDoctorsByActiveTrue method with pagination successfully
*
*/
@Test
@DisplayName("Should execute findAll method with pagination")
@DisplayName("Should execute findDoctorsByActiveTrue method with pagination")
public void testFindDoctors() throws Exception {
Pageable pageable = PageRequest.of(0, 3);