mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 23:57:34 +01:00
Cleanup
This commit is contained in:
parent
b53f71706a
commit
e9f274aa89
@ -85,7 +85,6 @@ public class MessageUpdater {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
private void copyMissingMessages() {
|
private void copyMissingMessages() {
|
||||||
for (Property<String> property : properties) {
|
for (Property<String> property : properties) {
|
||||||
String message = userConfiguration.getString(property.getPath());
|
String message = userConfiguration.getString(property.getPath());
|
||||||
|
@ -98,7 +98,7 @@ public abstract class AbstractResourceClosingTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Initialize the settings mock and makes it return the default of any given property by default. */
|
/** Initialize the settings mock and makes it return the default of any given property by default. */
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void initializeSettings() throws IOException, ClassNotFoundException {
|
public static void initializeSettings() throws IOException, ClassNotFoundException {
|
||||||
settings = mock(Settings.class);
|
settings = mock(Settings.class);
|
||||||
|
@ -173,7 +173,6 @@ public class LimboPlayerTaskManagerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldNotRegisterTimeoutTaskForZeroTimeout() {
|
public void shouldNotRegisterTimeoutTaskForZeroTimeout() {
|
||||||
// given
|
// given
|
||||||
String name = "snail";
|
|
||||||
Player player = mock(Player.class);
|
Player player = mock(Player.class);
|
||||||
LimboPlayer limboPlayer = mock(LimboPlayer.class);
|
LimboPlayer limboPlayer = mock(LimboPlayer.class);
|
||||||
given(settings.getProperty(RestrictionSettings.TIMEOUT)).willReturn(0);
|
given(settings.getProperty(RestrictionSettings.TIMEOUT)).willReturn(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user