mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-11-19 01:52:29 +01:00
Run the setup wizard before an unconfigured profile's runtime is built
Written-by: Gemini 4 Hydrogen (Antigravity) Written-by: Claude Fable 5.2
This commit is contained in:
3 files changed
+66
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
package kst4contest.view;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
/**
|
||||
* The request to show the setup wizard on the next runtime start is honoured exactly once.
|
||||
* A request that stuck would open the wizard on every later profile switch.
|
||||
*/
|
||||
class ApplicationRuntimeLauncherSetupWizardTest {
|
||||
|
||||
@Test
|
||||
void aRequestIsHonouredOnce() {
|
||||
assertFalse(ApplicationRuntimeLauncher.consumeSetupWizardRequest(), "nothing was requested");
|
||||
|
||||
ApplicationRuntimeLauncher.requestSetupWizard();
|
||||
|
||||
assertTrue(ApplicationRuntimeLauncher.consumeSetupWizardRequest());
|
||||
assertFalse(ApplicationRuntimeLauncher.consumeSetupWizardRequest(), "the request must not stick");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user