File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
api-tests/src/test/java/org/openmrs/module/reporting/calculation Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1212import java .util .Arrays ;
1313import java .util .Collections ;
1414import java .util .HashMap ;
15+ import java .util .HashSet ;
1516import java .util .Map ;
1617import java .util .Set ;
1718
@@ -47,8 +48,8 @@ public void setup() throws Exception {
4748 public void evaluate_shouldEvaluateAPatientCalculation () throws Exception {
4849 Integer patientId1 = 2 ;
4950 Integer patientId2 = 7 ;
50- Set <PatientIdentifier > identifiers1 = ps .getPatient (patientId1 ).getIdentifiers ();
51- Set <PatientIdentifier > identifiers2 = ps .getPatient (patientId2 ).getIdentifiers ();
51+ Set <PatientIdentifier > identifiers1 = new HashSet <>( ps .getPatient (patientId1 ).getIdentifiers () );
52+ Set <PatientIdentifier > identifiers2 = new HashSet <>( ps .getPatient (patientId2 ).getIdentifiers () );
5253 PatientDataCalculation calculation = new PatientDataCalculationProvider ().getCalculation (
5354 "org.openmrs.module.reporting.data.patient.definition.PatientIdentifierDataDefinition" , null );
5455 Map <String , Object > parameters = new HashMap <String , Object >();
Original file line number Diff line number Diff line change 469469 <groupId >org.apache.maven.plugins</groupId >
470470 <artifactId >maven-compiler-plugin</artifactId >
471471 <configuration >
472- <target >1.6 </target >
473- <source >1.6 </source >
472+ <target >1.8 </target >
473+ <source >1.8 </source >
474474 </configuration >
475475 </plugin >
476476
You can’t perform that action at this time.
0 commit comments