Skip to content

Commit

Permalink
[prmr#508] Disabled JavaFX Application Thread implicit exit, fixing t…
Browse files Browse the repository at this point in the history
…he hanging test issue
  • Loading branch information
ArthusWQZ committed Dec 6, 2023
1 parent dde9c20 commit d63f0a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/org/jetuml/JavaFXLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*******************************************************************************/
package org.jetuml;

import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;

/**
Expand All @@ -33,5 +34,9 @@ public final class JavaFXLoader

private JavaFXLoader() {}

public static void load() {}
public static void load() {
// This prevents the JavaFX Application Thread from exiting after the execution of the
// first test file using it.
Platform.setImplicitExit(false);
}
}

0 comments on commit d63f0a6

Please sign in to comment.