简体   繁体   English

Maven和FEST-Swing测试

[英]Maven and FEST-Swing Tests

I have some FEST-Swing test and I would like to run it with Maven under linux. 我有一些FEST-Swing测试,我想在Linux下使用Maven运行它。 I tried using xvfb like this: 我尝试使用xvfb像这样:

xvfb-run mvn -Dtest=e2e.MateriePrimeE2eTest test

But I have this error: 但是我有这个错误:

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)
[...]

it's the same without xvfb. 没有xvfb也是一样。

"Headless" means that this code needs access to a graphics environment, and it hasn't. “无头”意味着该代码需要访问图形环境,而实际上并不需要。 Look at this question it may help you. 这个问题可能对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM