Changed Test port for WebServer because SonarQube uses 9000 on Travis

This commit is contained in:
Rsl1122 2018-04-06 10:09:25 +03:00
parent 0e8b80df32
commit e6874626bf
5 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ public class BukkitSystemTest {
@Test
public void testEnable() throws EnableException {
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
bukkitSystem = new BukkitSystem(planMock);
bukkitSystem.enable();

View File

@ -85,7 +85,7 @@ public class BungeeBukkitConnectionTest {
}
public void enable() throws EnableException {
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
bukkitSystem = new BukkitSystem(bukkitMock);
bukkitSystem.enable();

View File

@ -60,7 +60,7 @@ public class BungeeSystemTest {
public void testEnable() throws EnableException {
bungeeSystem = new BungeeSystem(planMock);
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
Settings.BUNGEE_IP.setTemporaryValue("8.8.8.8");
Settings.DB_TYPE.setTemporaryValue("sqlite");
bungeeSystem.setDatabaseSystem(new BukkitDBSystem());
@ -75,7 +75,7 @@ public class BungeeSystemTest {
bungeeSystem = new BungeeSystem(planMock);
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
Settings.DB_TYPE.setTemporaryValue("sqlite");
bungeeSystem.setDatabaseSystem(new BukkitDBSystem());

View File

@ -52,7 +52,7 @@ public class SpongeSystemTest {
@Test
@Ignore("Sponge mock required")
public void testEnable() throws EnableException {
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
spongeSystem = new SpongeSystem(planMock);
spongeSystem.enable();

View File

@ -48,7 +48,7 @@ public class HTTPSWebServerAuthTest {
Settings.WEBSERVER_CERTIFICATE_STOREPASS.setTemporaryValue("wDwwf663NLTm73gL");
Settings.WEBSERVER_CERTIFICATE_ALIAS.setTemporaryValue("DefaultPlanCert");
Settings.WEBSERVER_PORT.setTemporaryValue(9000);
Settings.WEBSERVER_PORT.setTemporaryValue(9005);
bukkitSystem = new BukkitSystem(planMock);
bukkitSystem.enable();