📄 bottomtypetest.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 + -