@Test(groups = "fast") public void testConvertToLong() throws Exception { Assert.assertEquals(value0.getLong(), Long.valueOf(0)); Assert.assertEquals(value1.getLong(), Long.valueOf(1)); Assert.assertEquals(valueBigPositive.getLong(), Long.valueOf(10000000000L)); Assert.assertEquals(valueBigNegative.getLong(), Long.valueOf(-10000000000L)); }
@Test(groups = "fast") public void testConstructor() throws Exception { DataItem item1 = new LongDataItem(10000000000L); Assert.assertEquals(item1.getLong(), Long.valueOf(10000000000L)); }
@Test(groups = "fast") public void testNoArgConstructor() throws Exception { DataItem item = new LongDataItem(); Assert.assertEquals(item.getLong(), Long.valueOf(0)); }