我有一些FEST-Swing测试,我想在linux下用Maven运行它。我尝试这样使用xvfb:
xvfb-run mvn -Dtest=e2e.MateriePrimeE2eTest test但是我有这个错误:
Running e2e.MateriePrimeE2eTest
Jan 18, 2013 10:26:58 AM org.fest.swing.monitor.WindowStatus <init>
WARNING: Error ocurred when creating a new Robot
java.awt.AWTException: headless environment
at java.awt.Robot.<init>(Robot.java:75)
at org.fest.swing.util.RobotFactory.newRobotInPrimaryScreen(RobotFactory.java:35)
[...]没有xvfb也是一样的。
发布于 2013-01-31 04:02:48
"Headless“意味着这段代码需要访问图形环境,但它并没有。看看this question,它可能会对你有所帮助。
https://stackoverflow.com/questions/14395985
复制相似问题