Skip to content

Commit

Permalink
reapply fixed which AppointmentStatuses are considered "cancelled"
Browse files Browse the repository at this point in the history
Conflicts:
	api/src/test/java/org/openmrs/module/appointmentscheduling/api/TimeSlotServiceTest.java
  • Loading branch information
mogoodrich authored and pamcdm committed Apr 1, 2014
1 parent 809512b commit f036581
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ public boolean evaluate(Object o) {
return ((AppointmentStatus) o).isCancelled();
}
};

public static Predicate notCancelledPredicate = new Predicate() {

@Override
public boolean evaluate(Object o) {
return !((AppointmentStatus) o).isCancelled();
}
};

public static Predicate notCancelledPredicate = new Predicate() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
import static org.junit.Assert.assertTrue;

/**
<<<<<<< HEAD
* Tests Time Slot methods in the {@link AppointmentService} .
=======
* Tests Time Slot methods in the {@link AppointmentService} .
>>>>>>> f97b876... fixed which AppointmentStatuses are considered "cancelled"
*/
public class TimeSlotServiceTest extends BaseModuleContextSensitiveTest {

Expand Down Expand Up @@ -398,12 +402,21 @@ public void shouldGetOnlyAvailableTimeSlotsByConstraintsSortedByStartDate() thro
List<TimeSlot> result = service.getTimeSlotsByConstraints(type, fromDate, null, null, null);
assertNotNull(result);
assertEquals(4, result.size());
<<<<<<< HEAD

assertEquals(5, result.get(0).getTimeSlotId().intValue());
assertEquals(4, result.get(1).getTimeSlotId().intValue());
assertEquals(8, result.get(2).getTimeSlotId().intValue());
assertEquals(9, result.get(3).getTimeSlotId().intValue());

=======

assertEquals(5, result.get(0).getTimeSlotId().intValue());
assertEquals(4, result.get(1).getTimeSlotId().intValue());
assertEquals(8, result.get(2).getTimeSlotId().intValue());
assertEquals(9, result.get(3).getTimeSlotId().intValue());

>>>>>>> f97b876... fixed which AppointmentStatuses are considered "cancelled"
}

}

0 comments on commit f036581

Please sign in to comment.