On Thu, May 22, 2008 at 3:02 PM, Michiel van der Wulp <[EMAIL PROTECTED]> wrote:
> Can someone please have a look at the failing test I wrote (on the train)
> recently: TestInitSubsystem.
> According Hudson it gives a HeadlessException.
>
> I never understood how to solve such exceptions anyhow.
> Please help!

The default environment for tests is a headless environment, so you
can't use anything GUI related (this makes sense if you think of the
servers used to run the CI or nightly builds).  This means that if
you're testing in an environment other the default Ant build
environment, you should make sure that you include the
-Djava.awt.headless="true" command line parameter to make sure that
you're testing in the same environment that will get used by the
mainline build.

I've switched your test from the Test* domain to the GUITest* domain
where it will only get run in a GUI environment.

If some of it is applicable to the non-GUI domain, you can refactor
and partition it into GUI and non-GUI pieces.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to