Beispiel #1
0
 @Test
 public void testGetLongProperty() throws JTFException {
   // long databuf_size=1024
   Long expected = 1024L;
   Long actual = sampleJTFCommand.getLongProperty(JTFCommand.DATABUF_SIZE, true);
   assertEquals(expected, actual);
 }
Beispiel #2
0
 @Test
 public void testGetLongPropertyWithNull() throws JTFException {
   Long expected = null;
   Long actual = sampleJTFCommand.getLongProperty(JTFCommand.WRITETHRU, false);
   // assertNull(actual);
   assertEquals(expected, actual);
 }
Beispiel #3
0
 @Test
 public void testGetLongPropertyWithDefault() throws JTFException {
   // KEY_LEN_DEFAULT_VALUE = 1;
   Long expected = 1L;
   Long actual =
       sampleJTFCommand.getLongProperty(
           JTFCommand.KEY_LEN, false, (long) JTFCommand.KEY_LEN_DEFAULT_VALUE);
   assertEquals(expected, actual);
 }