[R6] Refactor to "findDoctorsByActiveTrue"
This commit is contained in:
parent
f166bb930c
commit
03077db3a3
@ -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
|
||||
*
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user