自动测试:变化多端的输出(2)
发表于:2014-12-17来源:uml.org.cn作者:不详点击数:
标签:自动测试
20 @Override 21 public boolean EndSuite() { 22 // TODO Auto-generated method stub 23 return false; 24 } 25 26 @Override 27 public boolean StartSuite(String suiteName) { 28 // TODO Auto-generated metho
20

@Override 21

public boolean EndSuite() { 22

// TODO Auto-generated method stub 23

return false; 24

} 25

26

@Override 27

public boolean StartSuite(String suiteName) { 28

// TODO Auto-generated method stub 29

return false; 30

} 31

32

@Override 33

public boolean TestResult(String result) { 34

// TODO Auto-generated method stub 35

return false; 36

} 37

38

} 39

40

1

package my.cnblog.output; 2

3

/*The Factory of Outputter*/ 4

5

public class OutputterFactory { 6

IOutputter Create(String outputter){ 7

if (outputter.equalsIgnoreCase("TXTOutputter")){ 8

return new TXTOutputter(); 9

} 10

else if(outputter.equalsIgnoreCase("XMLOutputter")){ 11

/*return new XMLOutputter();*/ 12

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