예제 #1
0
 @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));
 }
예제 #2
0
 @Test(groups = "fast")
 public void testConstructor() throws Exception {
   DataItem item1 = new LongDataItem(10000000000L);
   Assert.assertEquals(item1.getLong(), Long.valueOf(10000000000L));
 }
예제 #3
0
 @Test(groups = "fast")
 public void testNoArgConstructor() throws Exception {
   DataItem item = new LongDataItem();
   Assert.assertEquals(item.getLong(), Long.valueOf(0));
 }