1.下载junit jar包
http://www.shangxueba.com/share/p6131505.html
2.把下载的junit-4.9.jar放入你的程序路径下的lib文件夹里
3.编写类
import junit.framework.TestCase;
public class TestCreateTopic extends TestCase{
public static void main(String args[]){
junit.textui.TestRunner.run(TestCreateTopic.class);
}
public void testCreateTopicNormal() {
com.createTopic(client, "bqs-bigpipe-test4", "right");
}
}