Skip to content

Commit eb273f0

Browse files
committed
test cleanup
1 parent 3587703 commit eb273f0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/system/src/test/java/test/robot/javafx/embed/swing/LinuxScreencastHangCrashTest.java

-12
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@
2626
package test.robot.javafx.embed.swing;
2727

2828
import java.awt.Robot;
29-
import java.lang.reflect.InvocationTargetException;
3029
import java.util.List;
3130
import java.util.concurrent.CountDownLatch;
3231
import java.util.concurrent.TimeUnit;
33-
import javax.swing.SwingUtilities;
3432

3533
import javafx.application.Platform;
3634
import javafx.scene.paint.Color;
37-
import org.junit.jupiter.api.AfterAll;
3835
import org.junit.jupiter.api.Assumptions;
3936
import org.junit.jupiter.api.BeforeAll;
4037
import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
@@ -55,7 +52,6 @@ public class LinuxScreencastHangCrashTest {
5552
private static final int DELAY_KEEP_SESSION = DELAY_BEFORE_SESSION_CLOSE - 1000;
5653

5754
private static volatile boolean isFxStarted = false;
58-
private static volatile boolean isFirstRun = true;
5955

6056
@BeforeAll
6157
public static void init() throws Exception {
@@ -109,14 +105,6 @@ private static void initFX() {
109105
}
110106
}
111107

112-
private static void checkFirstRun() {
113-
if (isFirstRun) {
114-
isFirstRun = false;
115-
} else {
116-
robot.delay(DELAY_WAIT_FOR_SESSION_TO_CLOSE);
117-
}
118-
}
119-
120108
@Test
121109
@Order(1)
122110
@Timeout(value=30)

0 commit comments

Comments
 (0)