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

📄 bottomtypetest.java

📁 一个查找java程序里bug的程序的源代码,该程序本身也是java写的,对提高java编程水平很有用
💻 JAVA
字号:
package edu.umd.cs.findbugs.ba.type;import junit.framework.Assert;import junit.framework.TestCase;public class BottomTypeTest extends TestCase {	private BottomType bottom;	protected void setUp() {		bottom = new BottomType();	}	public void testGetSignature() {		Assert.assertEquals(bottom.getSignature(), SpecialTypeSignatures.BOTTOM_TYPE_SIGNATURE);	}	public void testNotReferenceType() {		Assert.assertFalse(bottom.isReferenceType());	}	public void testNotBasicType() {		Assert.assertFalse(bottom.isBasicType());	}	public void testNotValidArrayElementType() {		Assert.assertFalse(bottom.isValidArrayElementType());	}	public void testNotValidArrayBaseType() {		Assert.assertFalse(bottom.isValidArrayBaseType());	}	public void testEquals() {		BottomType otherBottom = new BottomType();		TopType top = new TopType();		Assert.assertEquals(bottom, otherBottom);		Assert.assertFalse(bottom.equals(top));	}}// vim:ts=4

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -