DsconfigOptionsTestCase.java:
In testGenerateDoc(), added the @Test annotation + ensured the property set is cleared at the end of the test.
| | |
| | | assertEquals(dsconfigMain(args), SUCCESSFUL.getReturnCode()); |
| | | } |
| | | |
| | | @Test |
| | | public void testGenerateDoc() throws Exception |
| | | { |
| | | System.setProperty("org.forgerock.opendj.gendoc", "true"); |
| | |
| | | "--no-prompt", |
| | | "-?", |
| | | }; |
| | | assertEquals(dsconfigMain(args), CANNOT_INITIALIZE_ARGS.getReturnCode()); |
| | | try |
| | | { |
| | | assertEquals(dsconfigMain(args), CANNOT_INITIALIZE_ARGS.getReturnCode()); |
| | | } |
| | | finally |
| | | { |
| | | System.clearProperty("org.forgerock.opendj.gendoc"); |
| | | } |
| | | } |
| | | |
| | | private int dsconfigMain(String[] args) |