Skip to content

Commit

Permalink
Removed failing tests since it is no longer relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
wluyima committed Feb 6, 2014
1 parent cd39b06 commit e570c14
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions api/src/test/java/org/openmrs/api/OrderServiceTest.java
Expand Up @@ -102,25 +102,6 @@ public void getOrderByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid() throws
Assert.assertNull(Context.getOrderService().getOrderByUuid("some invalid uuid"));
}

/**
* @see {@link OrderService#saveOrder(Order)}
*/
@Test
@Verifies(value = "when saving a discontinuedReasonNonCoded parameter the value is correctly stored to the database", method = "saveOrder(Order)")
public void saveOrder_shouldSaveDiscontinuedReasonNonCoded() throws Exception {
String uuid = "921de0a3-05c4-444a-be03-e01b4c4b9142";
Order order = Context.getOrderService().getOrderByUuid(uuid);
String discontinuedReasonNonCoded = "Non coded discontinued reason";

order.setOrderReasonNonCoded(discontinuedReasonNonCoded);
OrderService orderService = Context.getOrderService();
orderService.saveOrder(order);

order = Context.getOrderService().getOrderByUuid(uuid);

Assert.assertEquals(discontinuedReasonNonCoded, order.getOrderReasonNonCoded());
}

@Test
public void purgeOrder_shouldDeleteObsThatReference() throws Exception {
executeDataSet("org/openmrs/api/include/OrderServiceTest-deleteObsThatReference.xml");
Expand Down

0 comments on commit e570c14

Please sign in to comment.