Код: Выделить всё
import org.fest.swing.core.BasicRobot;
import org.fest.swing.core.Robot;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
class RobotTest {
static Robot robot;
@BeforeAll
static void beforeAll() {
robot = BasicRobot.robotWithCurrentAwtHierarchy();
}
@Test
void method_ifSomething_thenShouldDoSomething() {
// no actual test
}
}
< /code>
// identical imports
class RobotTest2 {
// identical content
}
< /code>
org.easytesting
fest-swing
1.2.1
Код: Выделить всё
@BeforeAll
static void beforeAll() {
// robot = BasicRobot.robotWithCurrentAwtHierarchy();
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... definitely