Remove unused fields instead of suppressing warnings
This commit is contained in:
parent
1de086c090
commit
4d75542594
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user