Beispiel #1
0
 @Test
 public void testGetIntegerPropertyWithNull() throws JTFException {
   Integer expected = null;
   Integer actual = sampleJTFCommand.getIntegerProperty(JTFCommand.WRITETHRU, false);
   // assertNull(actual);
   assertEquals(expected, actual);
 }
Beispiel #2
0
 @Test
 public void testGetIntegerProperty() throws JTFException {
   // int databuf_size=1024
   Integer expected = 1024;
   Integer actual = sampleJTFCommand.getIntegerProperty(JTFCommand.DATABUF_SIZE, true);
   assertEquals(expected, actual);
 }
Beispiel #3
0
 @Test
 public void testGetIntegerPropertyWithDefault() throws JTFException {
   // KEY_LEN_DEFAULT_VALUE = 1;
   Integer expected = 1;
   Integer actual =
       sampleJTFCommand.getIntegerProperty(
           JTFCommand.KEY_LEN, false, JTFCommand.KEY_LEN_DEFAULT_VALUE);
   assertEquals(expected, actual);
 }
Beispiel #4
0
 @Test(expected = JTFException.class)
 public void testGetIntegerPropertyThrowException() throws JTFException {
   sampleJTFCommand.getIntegerProperty(JTFCommand.DURABILITY_LEVEL, true);
 }