⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abouttests.java

📁 这是基于spring +hibernate的项目
💻 JAVA
字号:
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 + -