OpenMRS Core Master

Build: #2742 failed

Job: Build and Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Save order should fail if drug non coded in previous drug order does not match that of the revised drug order: Test case result

The below summarizes the result of the test "Save order should fail if drug non coded in previous drug order does not match that of the revised drug order" in build 2,742 of OpenMRS Core - OpenMRS Core Master - Build and Test. View test case history
Description
Save order should fail if drug non coded in previous drug order does not match that of the revised drug order
Test class
org.openmrs.api.OrderServiceTest
Method
saveOrder_shouldFailIfDrugNonCodedInPreviousDrugOrderDoesNotMatchThatOfTheRevisedDrugOrder
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

org.opentest4j.AssertionFailedError: Unexpected exception type thrown ==> expected: <org.openmrs.api.EditedOrderDoesNotMatchPreviousException> but was: <org.openmrs.api.ValidationException>
	at org.openmrs.api.OrderServiceTest.saveOrder_shouldFailIfDrugNonCodedInPreviousDrugOrderDoesNotMatchThatOfTheRevisedDrugOrder(OrderServiceTest.java:3367)
Caused by: org.openmrs.api.ValidationException: 'DrugOrder(3.0Concept #50 of non coded aspirin from Mon Sep 13 23:04:34 UTC 2021 to null)' failed to validate with reason: drug: Error while submitting form, concept: Invalid concept
	at org.openmrs.api.OrderServiceTest.lambda$saveOrder_shouldFailIfDrugNonCodedInPreviousDrugOrderDoesNotMatchThatOfTheRevisedDrugOrder$42(OrderServiceTest.java:3367)
	at org.openmrs.api.OrderServiceTest.saveOrder_shouldFailIfDrugNonCodedInPreviousDrugOrderDoesNotMatchThatOfTheRevisedDrugOrder(OrderServiceTest.java:3367)