1
0
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:
2023-03-20 11:18:49 +01:00
parent 610bc34bd2
commit a8a5e1be8a
5 changed files with 8 additions and 8 deletions

View File

@ -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) {

View File

@ -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);
} }

View File

@ -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")

View File

@ -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

View File

@ -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);
} }