Search in sources :

Example 6 with ConceptSet

use of org.openmrs.ConceptSet in project openmrs-core by openmrs.

the class ConceptServiceImplTest method getSetsContainingConcept_shouldGiveAListOfConceptSetContainingTheGivenConcept.

/**
 * @see ConceptServiceImpl#getSetsContainingConcept(Concept)
 */
@Test
public void getSetsContainingConcept_shouldGiveAListOfConceptSetContainingTheGivenConcept() {
    Concept concept = conceptService.getConcept(18);
    List<ConceptSet> conceptSets = conceptService.getSetsContainingConcept(concept);
    assertNotNull(conceptSets);
    assertEquals(conceptSets.get(0).getConcept(), concept);
}
Also used : Concept(org.openmrs.Concept) ConceptSet(org.openmrs.ConceptSet) Test(org.junit.Test) BaseContextSensitiveTest(org.openmrs.test.BaseContextSensitiveTest)

Aggregations

ConceptSet (org.openmrs.ConceptSet)6 Test (org.junit.Test)4 Concept (org.openmrs.Concept)4 BaseContextSensitiveTest (org.openmrs.test.BaseContextSensitiveTest)4 ArrayList (java.util.ArrayList)1 ConceptService (org.openmrs.api.ConceptService)1