mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-03 17:52:53 +00:00
Anpassung Methoden- und Parameternamen
This commit is contained in:
@ -65,7 +65,7 @@ public class Merkmalskatalog implements IProcedureAnalyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void analyze(Procedure procedurea, Disease disease) {
|
public void analyze(Procedure procedure, Disease disease) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String[]> getMerkmalskatalog(final Map<String, Object> input) {
|
public List<String[]> getMerkmalskatalog(final Map<String, Object> input) {
|
||||||
|
@ -89,7 +89,7 @@ public class TherapieplanAnalyzer implements IProcedureAnalyzer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void analyze(Procedure procedure, Disease disease) {
|
public void analyze(Procedure procedure, Disease disease) {
|
||||||
therapieplanServiceFactory.currentUsableinstance().updateRequiredMtbEntries(procedure);
|
therapieplanServiceFactory.currentUsableInstance().updateRequiredMtbEntries(procedure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ public class TherapieplanServiceFactory {
|
|||||||
this.formService = formService;
|
this.formService = formService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TherapieplanService currentUsableinstance() {
|
public TherapieplanService currentUsableInstance() {
|
||||||
if (
|
if (
|
||||||
null != onkostarApi.getGlobalSetting("mehrere_mtb_in_mtbepisode")
|
null != onkostarApi.getGlobalSetting("mehrere_mtb_in_mtbepisode")
|
||||||
&& onkostarApi.getGlobalSetting("mehrere_mtb_in_mtbepisode").equals("true")
|
&& onkostarApi.getGlobalSetting("mehrere_mtb_in_mtbepisode").equals("true")
|
||||||
|
@ -39,11 +39,11 @@ public class TherapieplanAnalyzerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void shouldRunServiceMethodsOnAnalyzeCalled() {
|
void shouldRunServiceMethodsOnAnalyzeCalled() {
|
||||||
when(this.therapieplanServiceFactory.currentUsableinstance()).thenReturn(new MultipleMtbTherapieplanService());
|
when(this.therapieplanServiceFactory.currentUsableInstance()).thenReturn(new MultipleMtbTherapieplanService());
|
||||||
|
|
||||||
this.therapieplanAnalyzer.analyze(new Procedure(onkostarApi), null);
|
this.therapieplanAnalyzer.analyze(new Procedure(onkostarApi), null);
|
||||||
|
|
||||||
verify(this.therapieplanServiceFactory, times(1)).currentUsableinstance();
|
verify(this.therapieplanServiceFactory, times(1)).currentUsableInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -42,7 +42,7 @@ public class TherapieplanServiceFactoryTest {
|
|||||||
return null;
|
return null;
|
||||||
}).when(onkostarApi).getGlobalSetting(anyString());
|
}).when(onkostarApi).getGlobalSetting(anyString());
|
||||||
|
|
||||||
var actual = this.therapieplanServiceFactory.currentUsableinstance();
|
var actual = this.therapieplanServiceFactory.currentUsableInstance();
|
||||||
|
|
||||||
assertThat(actual).isInstanceOf(DefaultTherapieplanService.class);
|
assertThat(actual).isInstanceOf(DefaultTherapieplanService.class);
|
||||||
}
|
}
|
||||||
@ -51,7 +51,7 @@ public class TherapieplanServiceFactoryTest {
|
|||||||
void testShouldReturnDefaultTherapieplanServiceIfNoSetting() {
|
void testShouldReturnDefaultTherapieplanServiceIfNoSetting() {
|
||||||
when(onkostarApi.getGlobalSetting(anyString())).thenReturn(null);
|
when(onkostarApi.getGlobalSetting(anyString())).thenReturn(null);
|
||||||
|
|
||||||
var actual = this.therapieplanServiceFactory.currentUsableinstance();
|
var actual = this.therapieplanServiceFactory.currentUsableInstance();
|
||||||
|
|
||||||
assertThat(actual).isInstanceOf(DefaultTherapieplanService.class);
|
assertThat(actual).isInstanceOf(DefaultTherapieplanService.class);
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ public class TherapieplanServiceFactoryTest {
|
|||||||
return null;
|
return null;
|
||||||
}).when(onkostarApi).getGlobalSetting(anyString());
|
}).when(onkostarApi).getGlobalSetting(anyString());
|
||||||
|
|
||||||
var actual = this.therapieplanServiceFactory.currentUsableinstance();
|
var actual = this.therapieplanServiceFactory.currentUsableInstance();
|
||||||
|
|
||||||
assertThat(actual).isInstanceOf(MultipleMtbTherapieplanService.class);
|
assertThat(actual).isInstanceOf(MultipleMtbTherapieplanService.class);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user