0

I have some FEST-Swing test and I would like to run it with Maven under linux. I tried using xvfb like this:

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.

maazza
  • 7,016
  • 15
  • 63
  • 96
devmao
  • 670
  • 8
  • 18

1 Answers1

0

"Headless" means that this code needs access to a graphics environment, and it hasn't. Look at this question it may help you.

Community
  • 1
  • 1
Marcin Sanecki
  • 1,324
  • 3
  • 19
  • 35