1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-04 10:02:55 +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

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

View File

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