Skip to content

Commit

Permalink
[#508] Disabled JavaFX Application Thread implicit exit, fixing the h…
Browse files Browse the repository at this point in the history
…anging test issue
  • Loading branch information
ArthusWQZ authored and prmr committed Dec 18, 2023
1 parent dde9c20 commit ffed210
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 ffed210

Please sign in to comment.