Fix failing tests after Mockito upgrade

This commit is contained in:
ljacqu
2020-03-03 08:22:00 +01:00
parent f3cb8af809
commit 7d4dfe3ee3
3 changed files with 6 additions and 9 deletions
@@ -90,8 +90,7 @@ public class AuthMeInitializationTest {
@Test
public void shouldInitializeAllServices() {
// given
PropertyReader reader = mock(PropertyReader.class, RETURNS_DEEP_STUBS);
given(reader.getList(anyString())).willReturn(Collections.emptyList());
PropertyReader reader = mock(PropertyReader.class);
PropertyResource resource = mock(PropertyResource.class);
given(resource.createReader()).willReturn(reader);
Settings settings = new Settings(dataFolder, resource, null, buildConfigurationData());