Exemple #1
0
  @Test
  public void testGetStringProperty() throws JTFException {
    // cname=fdfcontainer
    String expected = "fdfcontainer";
    String actual = sampleJTFCommand.getStringProperty("cname", true);

    assertEquals(expected, actual);
  }
Exemple #2
0
  @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);
  }