Fix Checkstyle violations
- Mostly missing Javadoc on large methods - CommandInitializer: split command building method into multiple methods
This commit is contained in:
@@ -25,7 +25,7 @@ public class TwoFactorTest {
|
||||
String secret = "3AK6Y4KWGRLJMEQW";
|
||||
|
||||
// when
|
||||
String url = TwoFactor.getQRBarcodeURL(user, host, secret);
|
||||
String url = TwoFactor.getQrBarcodeUrl(user, host, secret);
|
||||
|
||||
// then
|
||||
String expected = "https://www.google.com/chart?chs=130x130&chld=M%7C0&cht=qr"
|
||||
|
||||
@@ -28,7 +28,6 @@ import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
import static org.mockito.hamcrest.MockitoHamcrest.argThat;
|
||||
import static fr.xephi.authme.AuthMeMatchers.equalToHash;
|
||||
|
||||
/**
|
||||
* Test for {@link MigrationService}.
|
||||
|
||||
@@ -178,6 +178,19 @@ public class CommandManagerTest {
|
||||
verifyZeroInteractions(bukkitService, geoIpService);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldExecuteCommandOnUnregister() {
|
||||
// given
|
||||
copyJarFileAsCommandsYml(TEST_FILES_FOLDER + "commands.incomplete.yml");
|
||||
initManager();
|
||||
|
||||
// when
|
||||
manager.runCommandsOnUnregister(player);
|
||||
|
||||
// then
|
||||
verify(bukkitService).dispatchConsoleCommand("msg Bobby sad to see you go!");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldHaveHiddenConstructorInSettingsHolderClass() {
|
||||
// given / when / then
|
||||
|
||||
Reference in New Issue
Block a user