@Test public void testGetLongProperty() throws JTFException { // long databuf_size=1024 Long expected = 1024L; Long actual = sampleJTFCommand.getLongProperty(JTFCommand.DATABUF_SIZE, true); assertEquals(expected, actual); }
@Test public void testGetLongPropertyWithNull() throws JTFException { Long expected = null; Long actual = sampleJTFCommand.getLongProperty(JTFCommand.WRITETHRU, false); // assertNull(actual); assertEquals(expected, actual); }
@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); }