?? abouttests.java.svn-base
字號:
package com.pure.domain;
import junit.framework.TestCase;
public class AboutTests extends TestCase {
protected void setUp() throws Exception {
super.setUp();
}
public void testAboutEquals(){
About a = new About();
a.setId(new Long(1));
a.setName("購物指南");
a.setContent("關于如何購物的幫助文檔");
About b = new About();
b.setId(new Long(1));
b.setName("購物指南");
b.setContent("關于如何購物的幫助文檔");
assertEquals(true,a.equals(b));
System.out.println(a.hashCode());
System.out.println(b.hashCode());
}
protected void tearDown() throws Exception {
super.tearDown();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -