mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-03 17:52:53 +00:00
Issue #54: Add common EcogService interface
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package DNPM.analyzer;
|
||||
|
||||
import DNPM.dto.EcogStatusWithDate;
|
||||
import DNPM.services.systemtherapie.SystemtherapieService;
|
||||
import de.itc.onkostar.api.*;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
@ -54,7 +55,7 @@ class SystemtherapieAnalyzerTest {
|
||||
final var ecogDate = daysPassed(1);
|
||||
final var procedureDate = daysPassed(1);
|
||||
|
||||
doAnswer(invocationOnMock -> List.of(new SystemtherapieService.EcogStatusWithDate(ecogDate, "0")))
|
||||
doAnswer(invocationOnMock -> List.of(new EcogStatusWithDate(ecogDate, "0")))
|
||||
.when(systemtherapieService).ecogStatus(any(Patient.class));
|
||||
|
||||
var patient = new Patient(onkostarApi);
|
||||
@ -114,7 +115,7 @@ class SystemtherapieAnalyzerTest {
|
||||
final var ecogDate = daysPassed(28);
|
||||
final var procedureDate = daysPassed(1);
|
||||
|
||||
doAnswer(invocationOnMock -> List.of(new SystemtherapieService.EcogStatusWithDate(ecogDate, "0")))
|
||||
doAnswer(invocationOnMock -> List.of(new EcogStatusWithDate(ecogDate, "0")))
|
||||
.when(systemtherapieService).ecogStatus(any(Patient.class));
|
||||
|
||||
var patient = new Patient(onkostarApi);
|
||||
|
Reference in New Issue
Block a user