📄 toptypetest.java
字号:
package edu.umd.cs.findbugs.ba.type;import junit.framework.Assert;import junit.framework.TestCase;public class TopTypeTest extends TestCase { private TopType top; protected void setUp() { top = new TopType(); } public void testGetSignature() { Assert.assertEquals(top.getSignature(), SpecialTypeSignatures.TOP_TYPE_SIGNATURE); } public void testNotReferenceType() { Assert.assertFalse(top.isReferenceType()); } public void testNotBasicType() { Assert.assertFalse(top.isBasicType()); } public void testNotValidArrayElementType() { Assert.assertFalse(top.isValidArrayElementType()); } public void testNotValidArrayBaseType() { Assert.assertFalse(top.isValidArrayBaseType()); } public void testEquals() { TopType otherTop = new TopType(); BottomType bottom = new BottomType(); Assert.assertEquals(top, otherTop); Assert.assertFalse(top.equals(bottom)); }}// vim:ts=4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -