mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-03-26 19:18:17 +03:00
* [REFACTOR] Рефакторинг. * [FEATURE] LauncherAgent переделан. * [FIX] Подача нужных агенту аргументов. * [FEATURE] Вы можете поставить листы ClientProfile модулем. * [FIX] Скрипты gradle, для работы LauncherTest. * [FEATURE] Система тестов - начало. * [FIX] Perms handler для тестовю
36 lines
982 B
Java
36 lines
982 B
Java
package ru.gravit.launcher;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.Path;
|
|
import java.security.spec.InvalidKeySpecException;
|
|
|
|
import org.junit.jupiter.api.BeforeAll;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.io.TempDir;
|
|
|
|
import ru.gravit.launcher.test.utils.EXENonWarningLauncherBinary;
|
|
import ru.gravit.launchserver.LaunchServer;
|
|
import ru.gravit.utils.helper.LogHelper;
|
|
|
|
public class StartTest {
|
|
@TempDir
|
|
public Path dir;
|
|
|
|
@BeforeAll
|
|
public static void prepare() {
|
|
LogHelper.removeStdOutput();
|
|
LaunchServer.defaultLauncherEXEBinaryClass = EXENonWarningLauncherBinary.class;
|
|
}
|
|
|
|
@Test
|
|
public void checkLaunchServerStarts() {
|
|
try {
|
|
LaunchServer srv = new LaunchServer(dir, true, new String[] { "checkInstall" });
|
|
srv.run();
|
|
srv.commandHandler.eval(new String[] { "checkInstall" }, false);
|
|
srv.close();
|
|
} catch (InvalidKeySpecException | IOException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|