change code for ObjectUtil.isNotNull

This commit is contained in:
Looly
2022-06-18 11:06:56 +08:00
parent 231e0cf1d7
commit d9601cbbf5
3 changed files with 16 additions and 4 deletions

View File

@@ -93,4 +93,10 @@ public class ObjectUtilTest {
final boolean basicType = ObjectUtil.isBasicType(a);
Assert.assertTrue(basicType);
}
@Test
public void isNotNullTest(){
String a = null;
Assert.assertFalse(ObjectUtil.isNotNull(a));
}
}