?? abouttests.java
字號(hào):
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("購(gòu)物指南");
a.setContent("關(guān)于如何購(gòu)物的幫助文檔");
About b = new About();
b.setId(new Long(1));
b.setName("購(gòu)物指南");
b.setContent("關(guān)于如何購(gòu)物的幫助文檔");
assertEquals(true,a.equals(b));
System.out.println(a.hashCode());
System.out.println(b.hashCode());
}
protected void tearDown() throws Exception {
super.tearDown();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -