public void test_isNotNull() throws Exception { Long dt = null; Assert.assertFalse(DateTimeOperations.isNotNull(dt)); Assert.assertTrue(DateTimeOperations.isNotNull(System.currentTimeMillis())); }
public void test_isNotNull2() throws Exception { DateTime dt = DateTimeOperations.convert(System.currentTimeMillis(), DateTimeZone.getDefault()); Assert.assertTrue(DateTimeOperations.isNotNull(dt)); Assert.assertFalse(DateTimeOperations.isNull(dt)); }
public void test_isNull2() throws Exception { DateTime dt = null; Assert.assertTrue(DateTimeOperations.isNull(dt)); Assert.assertFalse(DateTimeOperations.isNotNull(dt)); }