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

发表于:2011-10-12来源:未知作者:领测软件测试网采编点击数: 标签:自动测试
{ 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) {

{ 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

}

Code 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

String[] list = outputterList.split(";"); 9

for (int i=0;i

 

原文转自:http://www.ltesting.net