Originally posted by ting_yt2 at 2005-5-25 12:22:
哎呀 我把这个例子转换为Junit的:
public void testAssert(){
String[] string1 = {"1","2"};
String[] string3 = string1;
String[] string4 = {"1",& ...
Originally posted by ting_yt2 at 2005-5-25 12:22 PM:
哎呀 我把这个例子转换为Junit的:
public void testAssert(){
String[] string1 = {"1","2"};
String[] string3 = string1;
String[] string4 = {"1",& ...
Originally posted by ting_yt2 at 2005-5-25 02:16 PM:
是不是说
assertSame("string1和string4不相同",string1,string4); 这句可能通过也可能不通过,要看其内存中是否已经存在该对象?
但是assertEquals("string1和string4不相等",string1, ...
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |