Remove unused fields instead of suppressing warnings

This commit is contained in:
ljacqu 2016-06-11 19:05:10 +02:00
parent 1de086c090
commit 4d75542594
2 changed files with 0 additions and 6 deletions

View File

@ -38,8 +38,6 @@ public class PlayerCommandTest {
// given
Player player = mock(Player.class);
List<String> arguments = Arrays.asList("arg1", "testarg2");
@SuppressWarnings("unused")
CommandService service = mock(CommandService.class);
PlayerCommandImpl command = new PlayerCommandImpl();
// when

View File

@ -85,8 +85,6 @@ public class ReloadCommandTest {
public void shouldHandleReloadError() {
// given
CommandSender sender = mock(CommandSender.class);
@SuppressWarnings("unused")
CommandService service = mock(CommandService.class);
doThrow(IllegalStateException.class).when(initializer).performReloadOnServices();
given(settings.getProperty(DatabaseSettings.BACKEND)).willReturn(DataSourceType.MYSQL);
given(dataSource.getType()).willReturn(DataSourceType.MYSQL);
@ -105,8 +103,6 @@ public class ReloadCommandTest {
public void shouldIssueWarningForChangedDatasourceSetting() {
// given
CommandSender sender = mock(CommandSender.class);
@SuppressWarnings("unused")
CommandService service = mock(CommandService.class);
given(settings.getProperty(DatabaseSettings.BACKEND)).willReturn(DataSourceType.MYSQL);
given(dataSource.getType()).willReturn(DataSourceType.SQLITE);