Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Responding to review comments for: The API should be able to assign
OrderTypes - TRUNK-4302
- Loading branch information
Showing
6 changed files
with
72 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
import org.junit.rules.ExpectedException; | ||
import org.openmrs.CareSetting; | ||
import org.openmrs.Concept; | ||
import org.openmrs.ConceptClass; | ||
import org.openmrs.ConceptName; | ||
import org.openmrs.Drug; | ||
import org.openmrs.DrugOrder; | ||
|
@@ -1681,4 +1682,16 @@ public void getDiscontinuationOrder_shouldReturnNullIfOrderHasNotBeenDiscontinue | |
|
||
assertThat(discontinuationOrder, is(nullValue())); | ||
} | ||
|
||
/** | ||
* @see OrderService#getOrderTypeByConceptClass(ConceptClass) | ||
* @verifies return order type mapped to given concept class | ||
*/ | ||
@Test | ||
public void getOrderTypeByConceptClass_shouldReturnOrderTypeMappedToGivenConceptClass() throws Exception { | ||
OrderType orderType = orderService.getOrderTypeByConceptClass(Context.getConceptService().getConceptClass(1)); | ||
|
||
Assert.assertNotNull(orderType); | ||
Assert.assertEquals(2, orderType.getOrderTypeId().intValue()); | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dkayiwa
via email
Author
Member
|
||
} |
39 changes: 0 additions & 39 deletions
39
api/src/test/java/org/openmrs/api/db/hibernate/HibernateOrderDAOTest.java
This file was deleted.
Oops, something went wrong.
There is code in the OrderServiceImpl.saveOrder that was doing something similar to this, you might have broken some units tests. I made this suggestion before we added the other code, so probably this is no longer needed here in the handler, Sorry about that i should have hinted you.