Skip to content

Commit

Permalink
Fix imports and remove unnecesary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pamcdm committed Mar 17, 2014
1 parent 697bee3 commit ef347cf
Showing 1 changed file with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Appointment> 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);
Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit ef347cf

Please sign in to comment.