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