Ticket #297 (closed defect: fixed)
Opened 2010-12-01T17:24:02-06:00
Last modified 2012-02-24T15:23:56-06:00
Fix ij1-bridge tests that fail due to headless violations
Reported by: | curtis | Owned by: | curtis |
---|---|---|---|
Priority: | blocker | Milestone: |
|
Component: | Build System | Version: | |
Severity: | fatal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1012, #1014 |
Description
Some tests require graphical AWT components, and thus fail during Hudson builds. E.g.:
------------------------------------------------------------------------------- Test set: imagej.ij1bridge.plugin.Ij1PluginFinderTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec <<< FAILURE! testIj1PluginFinder(imagej.ij1bridge.plugin.Ij1PluginFinderTest) Time elapsed: 0.027 sec <<< ERROR! java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.<init>(Window.java:432) at java.awt.Frame.<init>(Frame.java:403) at ij.ImageJ.<init>(ImageJ.java:118) at ij.ImageJ.<init>(ImageJ.java:106) at imagej.ij1bridge.plugin.Ij1PluginFinder.findPlugins(Ij1PluginFinder.java:21) at imagej.ij1bridge.plugin.Ij1PluginFinderTest.testIj1PluginFinder(Ij1PluginFinderTest.java:19)