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

    assertEquals(expected, actual);
  }
Exemplo n.º 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);
  }