mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
13.48.2013 2497cc59d4812e6502df5656ed41d35d2a393497
DsconfigOptionsTestCase.java:
In testGenerateDoc(), added the @Test annotation + ensured the property set is cleared at the end of the test.
1 files modified
8 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/dsconfig/DsconfigOptionsTestCase.java 8 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/dsconfig/DsconfigOptionsTestCase.java
@@ -101,6 +101,7 @@
    assertEquals(dsconfigMain(args), SUCCESSFUL.getReturnCode());
  }
  @Test
  public void testGenerateDoc() throws Exception
  {
    System.setProperty("org.forgerock.opendj.gendoc", "true");
@@ -108,8 +109,15 @@
      "--no-prompt",
      "-?",
    };
    try
    {
    assertEquals(dsconfigMain(args), CANNOT_INITIALIZE_ARGS.getReturnCode());
  }
    finally
    {
      System.clearProperty("org.forgerock.opendj.gendoc");
    }
  }
  private int dsconfigMain(String[] args)
  {