Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
TRUNK-5068: removing javadocs for tests
  • Loading branch information
helderjosue committed Mar 27, 2024
commit 596c5c71fa70112de01fefd74fe8cc63c6104b8c
17 changes: 3 additions & 14 deletions api/src/test/java/org/openmrs/api/ProgramWorkflowServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1102,11 +1102,7 @@ public void triggerStateConversion_shouldTestTransitionToState(){
assertEquals(patientProgram.getStates().size(), (patientStatesSize + 1));
}

/**
* Test to check the implementation of Patient Program Attribute Type by Uuid
* from Program Workflow Service
* @see ProgramWorkflowService#getPatientProgramAttributeByUuid(String)
*/

@Test
public void getProgramAttributeType_shouldReturnAttributeThatMatchesGivenUuid(){

Expand All @@ -1115,21 +1111,14 @@ public void getProgramAttributeType_shouldReturnAttributeThatMatchesGivenUuid(){
assertEquals(2, patientProgramAttribute.getId());
}

/**
* Test to check the number of Patient Program attributes by given name
* @see ProgramWorkflowService#getPatientProgramAttributeByAttributeName(List, String)
*/

@Test
public void getProgramAttributeByAttributeName_shouldReturnAttributeThatMatchesGivenName(){
Map<Object, Object> results = pws.getPatientProgramAttributeByAttributeName(
Collections.singletonList(2),"programName");
assertEquals(1,results.size());
}

/**
* Test to get a patient Program by its Attribute Name and Value Reference
* @see ProgramWorkflowService#getPatientProgramByAttributeNameAndValue(String, String)
*/

@Test
public void getPatientProgramByAttributeNameAndValue_shouldReturnProgramsThatMatchesParameters(){

Expand Down