From ef347cfe6cf592395cc88ed53b7bda08caefc1ff Mon Sep 17 00:00:00 2001 From: Pamela Canchanya Date: Mon, 17 Mar 2014 16:15:20 -0300 Subject: [PATCH] Fix imports and remove unnecesary comments --- .../api/AppointmentServiceTest.java | 28 +++++-------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentServiceTest.java b/api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentServiceTest.java index f25e8f23..8dcc5d08 100644 --- a/api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentServiceTest.java +++ b/api/src/test/java/org/openmrs/module/appointmentscheduling/api/AppointmentServiceTest.java @@ -32,6 +32,12 @@ import org.openmrs.test.BaseModuleContextSensitiveTest; import org.openmrs.test.Verifies; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.LinkedList; +import java.util.List; + import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertNull; @@ -425,26 +431,6 @@ public void shouldGetScheduledAppointmentsForPatientOrderedByStartData() { assertEquals(new Integer(7), appointments.get(3).getId()); } - // @Test - // public void shouldCreateScheduledAppointmentBlock() throws Exception { - // - // AppointmentBlock appointmentBlock = service.getAppointmentBlock(4); - // - // ScheduledAppointmentBlock scheduledAppointmentBlock = service.createScheduledAppointmentBlock(appointmentBlock, ); - // - // assertEquals(appointmentBlock, scheduledAppointmentBlock.getAppointmentBlock()); - // assertEquals(2, scheduledAppointmentBlock.getAppointments().size()); - // - // List appointmentList = scheduledAppointmentBlock.getAppointments(); - // Appointment appointment = appointmentList.get(0); - // assertEquals(1, appointment.getPatient().getId().intValue()); - // assertEquals("Initial HIV Clinic Appointment", appointment.getAppointmentType().getName()); - // - // appointment = appointmentList.get(1); - // assertEquals(6, appointment.getPatient().getId().intValue()); - // assertEquals("Initial HIV Clinic Appointment", appointment.getAppointmentType().getName()); - // } - @Test public void shouldGetDailyAppointments() throws Exception { Location location = Context.getLocationService().getLocation(2); @@ -472,7 +458,7 @@ public void shouldGetDailyAppointments() throws Exception { assertEquals("Initial HIV Clinic Appointment", appointment.getAppointmentType().getName()); appointment = appointmentList.get(1); - assertEquals(2 , appointment.getPatient().getId().intValue()); + assertEquals(2, appointment.getPatient().getId().intValue()); assertEquals("Initial HIV Clinic Appointment", appointment.getAppointmentType().getName()); }