| | |
| | | */ |
| | | package org.opends.quicksetup.util; |
| | | |
| | | import static junit.framework.Assert.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | import org.opends.quicksetup.ApplicationException; |
| | | import org.opends.quicksetup.Installation; |
| | |
| | | /** |
| | | * ServerController Tester. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | @Test(groups = {"slow"}) |
| | | public class ServerControllerTest extends QuickSetupTestCase { |
| | | |
| | | ServerController controller; |
| | | Status status; |
| | | private ServerController controller; |
| | | private Status status; |
| | | |
| | | @BeforeClass |
| | | public void setUp() throws Exception { |
| | |
| | | } |
| | | assertTrue(status.isServerRunning()); |
| | | controller.stopServer(); |
| | | assertTrue(!status.isServerRunning()); |
| | | assertFalse(status.isServerRunning()); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (status.isServerRunning()) { |
| | | controller.stopServer(); |
| | | } |
| | | assertTrue(!status.isServerRunning()); |
| | | assertFalse(status.isServerRunning()); |
| | | controller.startServer(); |
| | | assertTrue(status.isServerRunning()); |
| | | } |
| | | |
| | | } |