]
Paul Ferraro reassigned WFCORE-4817:
------------------------------------
Assignee: Paul Ferraro (was: Jeff Mesnil)
CliArgumentsTestCase fails if _JAVA_OPTIONS environment variable
defined
------------------------------------------------------------------------
Key: WFCORE-4817
URL:
https://issues.redhat.com/browse/WFCORE-4817
Project: WildFly Core
Issue Type: Bug
Components: Management
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Priority: Minor
If the user has a _JAVA_OPTIONS environment variable defined, this test consistently
fails - as it does not account for the fact that stuff may already have been written to
stdout.
e.g.
{noformat}
<failure message="expected:<[]Unknown argument: --...> but
was:<[Picked up _JAVA_OPTIONS:
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dawt.useSystemAAFontSettings=gasp -Djdk.gtk.version=3
-Dsun.java2d.opengl=true ]Unknown argument: --...>"
type="org.junit.ComparisonFailure"><![CDATA[org.junit.ComparisonFailure:
expected:<[]Unknown argument: --...> but was:<[Picked up _JAVA_OPTIONS:
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dawt.useSystemAAFontSettings=gasp -Djdk.gtk.version=3 -Dsun.java2d.opengl=true
]Unknown argument: --...>
{noformat}