Skip to content

Commit

Permalink
BS-280 | Fixed failing test cases by mocking tsClient (#8)
Browse files Browse the repository at this point in the history
* BS-280 | Fixed failing test cases by mocking tsClient

* BS-280 | Fixed test errors
  • Loading branch information
manimaarans authored and sivareddyp committed Oct 30, 2023
1 parent ae2546b commit 04bb82c
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,8 @@ private String getDynamicDecimalPlace(Double value) {
DecimalFormat decimalFormat = new DecimalFormat("#.##");
return decimalFormat.format(value);
}

public void setDoseFormsManySnomedToOneAtcCodeMap(List<ManyToOneMapEntry> mapEntries) {
this.doseFormsManySnomedToOneAtcCodeMap = mapEntries;
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package org.snomed.cdsservice;

import org.junit.jupiter.api.Test;
import org.snomed.cdsservice.service.medication.MedicationConditionRuleLoaderService;
import org.snomed.cdsservice.service.medication.MedicationCombinationRuleLoaderService;
import org.snomed.cdsservice.service.medication.MedicationConditionRuleLoaderService;
import org.snomed.cdsservice.service.medication.dose.SnomedMedicationDefinedDailyDoseService;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;

Expand All @@ -15,6 +16,9 @@ class CdsServiceApplicationTests {
@MockBean
private MedicationCombinationRuleLoaderService medicationRuleLoaderService;

@MockBean
private SnomedMedicationDefinedDailyDoseService definedDailyDoseService;

@Test
void contextLoads() {
}
Expand Down
Loading

0 comments on commit 04bb82c

Please sign in to comment.