1 package org.testng; 2 3 import java.io.Serializable; 4 import java.util.Collection; 5 import java.util.Set; 6 7 public interface IResultMap extends Serializable { 8 addResult(ITestResult result, ITestNGMethod method)9 public void addResult(ITestResult result, ITestNGMethod method); 10 getResults(ITestNGMethod method)11 public Set<ITestResult> getResults(ITestNGMethod method); 12 getAllResults()13 public Set<ITestResult> getAllResults(); 14 removeResult(ITestNGMethod m)15 public void removeResult(ITestNGMethod m); 16 removeResult(ITestResult r)17 public void removeResult(ITestResult r); 18 getAllMethods()19 public Collection<ITestNGMethod> getAllMethods(); 20 size()21 public int size(); 22 23 } 24