File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/test/java/com/faforever/client/test Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .faforever .client .fx .Controller ;
4
4
import com .faforever .client .fx .FxApplicationThreadExecutor ;
5
- import com .sun .javafx .application .PlatformImpl ;
6
5
import javafx .application .Platform ;
7
6
import javafx .fxml .FXMLLoader ;
8
7
import javafx .util .Callback ;
9
8
import lombok .Data ;
10
9
import lombok .extern .slf4j .Slf4j ;
11
- import org .junit .jupiter .api .BeforeEach ;
10
+ import org .junit .jupiter .api .BeforeAll ;
12
11
import org .junit .jupiter .api .extension .ExtendWith ;
13
12
import org .junit .jupiter .api .parallel .Execution ;
14
13
import org .junit .jupiter .api .parallel .ExecutionMode ;
@@ -51,9 +50,12 @@ public PlatformTest() {
51
50
});
52
51
}
53
52
54
- @ BeforeEach
55
- public void setupPlatform () {
56
- PlatformImpl .startup (() -> {});
53
+ @ BeforeAll
54
+ public static void setupPlatform () {
55
+ try {
56
+ Platform .startup (() -> {});
57
+ } catch (IllegalStateException ignored ) {
58
+ }
57
59
}
58
60
59
61
protected void loadFxml (String fileName ,
You can’t perform that action at this time.
0 commit comments