File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
src/test/java/io/reactivex/rxjavafx Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,13 @@ public void start(Stage primaryStage) throws Exception {
58
58
}
59
59
}
60
60
61
- @ BeforeClass
62
- public static void initJFX () {
63
- javafx .application .Platform .startup (() ->{});
64
- }
61
+ @ BeforeClass
62
+ public static void initJFX () {
63
+ try {
64
+ javafx .application .Platform .startup (() ->{});
65
+ }catch (final IllegalStateException ignore ) {
66
+ }
67
+ }
65
68
66
69
@ Test
67
70
public void testPeriodicScheduling () throws Exception {
Original file line number Diff line number Diff line change 36
36
37
37
public final class JavaFxObservableTest {
38
38
39
+ @ BeforeClass
40
+ public static void initJFX () {
41
+ try {
42
+ javafx .application .Platform .startup (() ->{});
43
+ }catch (final IllegalStateException ignore ) {
44
+ }
45
+ }
46
+
39
47
@ Test
40
48
public void testIntervalSource () {
41
49
You can’t perform that action at this time.
0 commit comments