自动测试:变化多端的输出(4)

发表于:2014-12-17来源:uml.org.cn作者:不详点击数: 标签:自动测试
boolean rs = it.next().EndSuite(); 15 if (rs == false) return false; 16 } 17 return true; 18 } 19 20 @Override 21 public boolean StartSuite(String suiteName) { 22 // the similar with the first functio
boolean rs = it.next().EndSuite(); 15
if (rs == false) return false; 16
} 17
return true; 18
} 19
20
@Override 21
public boolean StartSuite(String suiteName) { 22
// the similar with the first function 23
return false; 24
} 25
26
@Override 27
public boolean TestResult(String result) { 28
// the similar with the first function 29
return false; 30
} 31
32
public void Add(IOutputter outputter){ 33
outputterVector.add(outputter); 34
} 35
36
public void Remove(IOutputter outputter){ 37
outputterVector.remove(outputter); 38
} 39
40
}
1
package my.cnblog.output; 2
3
/*Modified Outputter Factory*/ 4
5
public class OutputterFactory { 6
IOutputter Create(String outputterList){ 7
OutputterContainer oc = new OutputterContainer(); 8

原文转自:http://www.uml.org.cn/Test/200902127.asp