Skip to content

Commit

Permalink
TRUNK-6028 make ConceptServiceTest pass on MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Sep 22, 2022
1 parent 1594ac8 commit 1aae73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/test/java/org/openmrs/api/ConceptServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2875,13 +2875,13 @@ public void getAllConcepts_shouldOrderByAConceptNameField() {

assertEquals(34, allConcepts.size());
assertEquals("ANTIRETROVIRAL TREATMENT GROUP", allConcepts.get(0).getName().getName());
assertEquals("tab (s)", allConcepts.get(allConcepts.size() - 1).getName().getName());
assertEquals("YES", allConcepts.get(allConcepts.size() - 1).getName().getName());

//test the desc order
allConcepts = conceptService.getAllConcepts("name", false, false);

assertEquals(34, allConcepts.size());
assertEquals("tab (s)", allConcepts.get(0).getName().getName());
assertEquals("YES", allConcepts.get(0).getName().getName());
assertEquals("ANTIRETROVIRAL TREATMENT GROUP", allConcepts.get(allConcepts.size() - 1).getName().getName());
}

Expand Down

0 comments on commit 1aae73a

Please sign in to comment.