Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.6
-
Fix Version/s: Backlog
-
Component/s: Maven Surefire Plugin
-
Labels:None
-
Complexity:Intermediate
-
Testcase included:yes
Description
This stanza:
<systemProperties>
<property>
<name>emptyProperty</name>
<value></value>
</property>
</systemProperties>
...yields "" from System.getProperty("emptyProperty").
This (supposedly better) stanza:
<systemPropertyVariables>
<emptyProperty></emptyProperty>
</systemPropertyVariables>
...yields null from System.getProperty("emptyProperty").
A test case is attached that demonstrates the issue.
I neglected to set the priority down from major, as the workaround is simply to continue to use the deprecated systemProperties stanza. My apologies.