Test Code/Test Code(eng)2 AppointmentCommandService Class - Test Code I wrote test code per one class. I chose AppointmentCommandService to write test code. Before wrtting test code, I put data in database. I classified into 3 categories in one method. "given, when, then" given: something is given. when: something is done. then: verification @Test void appointmentStatusTest() throws Exception { //given Appointment appointment1 = appointmentRepository.findById(1L)... 2022. 11. 11. AppointmentQueryService Class - Test Code I wrote test code per one class. I chose AppointmentQueryService to write test code. Before wrtting test code, I put data in database. I classified into 3 categories in one method. "given, when, then" given: something is given. when: something is done. then: verification @Test void findAllAppointmentEntityListTest() throws Exception { //given Doctor doctor = doctorRepository.findById(5L).get(); .. 2022. 11. 10. 이전 1 다음