@Test public void testGetIntegerPropertyWithNull() throws JTFException { Integer expected = null; Integer actual = sampleJTFCommand.getIntegerProperty(JTFCommand.WRITETHRU, false); // assertNull(actual); assertEquals(expected, actual); }
@Test public void testGetIntegerProperty() throws JTFException { // int databuf_size=1024 Integer expected = 1024; Integer actual = sampleJTFCommand.getIntegerProperty(JTFCommand.DATABUF_SIZE, true); assertEquals(expected, actual); }
@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); }
@Test(expected = JTFException.class) public void testGetIntegerPropertyThrowException() throws JTFException { sampleJTFCommand.getIntegerProperty(JTFCommand.DURABILITY_LEVEL, true); }