@Test public void testGetStringProperty() throws JTFException { // cname=fdfcontainer String expected = "fdfcontainer"; String actual = sampleJTFCommand.getStringProperty("cname", true); assertEquals(expected, actual); }
@Test public void testGetStringPropertyWithDefault() throws JTFException { // String DURABILITY_LEVEL_DEFAULT_VALUE = "ZS_DURABILITY_PERIODIC"; String expected = "ZS_DURABILITY_PERIODIC"; String actual = sampleJTFCommand.getStringProperty( JTFCommand.DURABILITY_LEVEL, false, JTFCommand.DURABILITY_LEVEL_DEFAULT_VALUE); assertEquals(expected, actual); }