静态变量static例子 junit4中assertEquals该如何用,最好能举个例子?

junit4中assertEquals该如何用,最好能举个例子?公共类HelloWorld{ 公共字符串say(){ 返回(“你好世界!“) }}}public class First扩展TestC

junit4中assertEquals该如何用,最好能举个例子?

公共类HelloWorld{ 公共字符串say(){ 返回(“你好世界!“) }}}public class First扩展TestCase{ public First(字符串名称){ super(名称) } public void testSay(){ HelloWorld hi=new HelloWorld() assertEquals(”Hello World!", 嗨,我说()) } 公共静态void main(字符串[]args){ junit.textui.TestRunner.运行(头等舱) } }