| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage2() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage3() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests the upgrade tool with an invalid sub-command. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowWrongSubcommand() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests the upgrade tool with an invalid sub-command. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowWrongSubcommand2() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | * The upgrade tool disallows the force sub-command used with 'interactive |
| | | * mode'. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowInteractiveAndForce() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Upgrade tool allows use of force and no-prompt sub-commands. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolAllowsNonInteractiveAndForce() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |