[testng] 26/355: Fix ResultMap.removeResult(ITestNGMethod) problem, see: https://groups.google.com/forum/#!topic/testng-users/T3vn765W4mw
Eugene Zhukov
eugene-guest at moszumanska.debian.org
Tue Aug 18 10:19:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.
commit e7db569b540cc85f519d321f50af659c42b49878
Author: spil-tamas <tamas.kende at spilgames.com>
Date: Tue Aug 20 10:09:06 2013 +0200
Fix ResultMap.removeResult(ITestNGMethod) problem, see: https://groups.google.com/forum/#!topic/testng-users/T3vn765W4mw
---
src/main/java/org/testng/IResultMap.java | 2 ++
src/main/java/org/testng/internal/ResultMap.java | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/src/main/java/org/testng/IResultMap.java b/src/main/java/org/testng/IResultMap.java
index 5d08f97..103c27e 100755
--- a/src/main/java/org/testng/IResultMap.java
+++ b/src/main/java/org/testng/IResultMap.java
@@ -14,6 +14,8 @@ public interface IResultMap extends Serializable {
public void removeResult(ITestNGMethod m);
+ public void removeResult(ITestResult r);
+
public Collection<ITestNGMethod> getAllMethods();
public int size();
diff --git a/src/main/java/org/testng/internal/ResultMap.java b/src/main/java/org/testng/internal/ResultMap.java
index c089e6a..5477a61 100755
--- a/src/main/java/org/testng/internal/ResultMap.java
+++ b/src/main/java/org/testng/internal/ResultMap.java
@@ -48,6 +48,11 @@ public class ResultMap implements IResultMap {
}
@Override
+ public void removeResult(ITestResult r) {
+ m_map.remove(r);
+ }
+
+ @Override
public Set<ITestResult> getAllResults() {
return m_map.keySet();
}
@@ -68,4 +73,5 @@ public class ResultMap implements IResultMap {
.add("map", m_map)
.toString();
}
+
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git
More information about the pkg-java-commits
mailing list