Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

r1286@thor: alex | 2006-12-19 18:11:30 +0200

 Fix for TESTNG-27
  • Loading branch information...
commit 6b388f81dc30426b2e120045ae8cd7728ca75815 1 parent 12a3852
the.mindstorm authored
Showing with 6 additions and 4 deletions.
  1. +1 −0  CHANGES.txt
  2. +5 −4 src/main/org/testng/xml/XmlTest.java
View
1  CHANGES.txt
@@ -1,6 +1,7 @@
===========================================================================
5.5
+Fixed: TESTNG-27: Parameters are not used on <test> level anymore
Fixed: TESTNG-107 don't create an output directory if "outputDirectory" is null
Fixed: TESTNG-127 UseDefaultListeners in Ant Task does not work
Fixed: TESTNG-119 Running TestNG runner with invalid '-sourcedir' on JDK14 JavaDoc annotated test classes won't fail.
View
9 src/main/org/testng/xml/XmlTest.java
@@ -310,10 +310,11 @@ public String toXml(String indent) {
// parameters
if (!m_parameters.isEmpty()) {
- for (String paramName: m_parameters.keySet()) {
- Properties paramProps = new Properties();
- paramProps.setProperty("name", paramName);
- paramProps.setProperty("value", m_parameters.get(paramName));
+ for(Map.Entry<String, String> para: m_parameters.entrySet()) {
+ Properties paramProps= new Properties();
+ paramProps.setProperty("name", para.getKey());
+ paramProps.setProperty("value", para.getValue());
+ xsb.addEmptyElement("property", paramProps); // BUGFIX: TESTNG-27
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.