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