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 an active drug order for the same concept and drug non coded and care setting exists: Test case result

The below summarizes the result of the test "Save order should fail if an active drug order for the same concept and drug non coded and care setting exists" in build 2,742 of OpenMRS Core - OpenMRS Core Master - Build and Test. View test case history
Description
Save order should fail if an active drug order for the same concept and drug non coded and care setting exists
Test class
org.openmrs.api.OrderServiceTest
Method
saveOrder_shouldFailIfAnActiveDrugOrderForTheSameConceptAndDrugNonCodedAndCareSettingExists
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

org.opentest4j.AssertionFailedError: Unexpected exception type thrown ==> expected: <org.openmrs.api.AmbiguousOrderException> but was: <org.openmrs.api.ValidationException>
	at org.openmrs.api.OrderServiceTest.saveOrder_shouldFailIfAnActiveDrugOrderForTheSameConceptAndDrugNonCodedAndCareSettingExists(OrderServiceTest.java:3318)
Caused by: org.openmrs.api.ValidationException: 'DrugOrder(3.0Concept #50 of non coded drug crocine from 2008-08-19 00:00:00.0 to null)' failed to validate with reason: drug: Error while submitting form, concept: Invalid concept
	at org.openmrs.api.OrderServiceTest.lambda$saveOrder_shouldFailIfAnActiveDrugOrderForTheSameConceptAndDrugNonCodedAndCareSettingExists$40(OrderServiceTest.java:3318)
	at org.openmrs.api.OrderServiceTest.saveOrder_shouldFailIfAnActiveDrugOrderForTheSameConceptAndDrugNonCodedAndCareSettingExists(OrderServiceTest.java:3318)