| | |
| | | |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | import org.testng.annotations.AfterClass; |
| | | |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.AddOperation; |
| | |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.restartServer(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Drops static references to allow garbage collection. |
| | | */ |
| | | @AfterClass |
| | | public void shutdown() |
| | | { |
| | | TestPasswordValidator.clearInstanceAfterTests(); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | Set<ByteString> currentPasswords = |
| | | TestPasswordValidator.getLastCurrentPasswords(); |
| | | assertTrue(currentPasswords.isEmpty()); |
| | | assertTrue(currentPasswords.isEmpty(), "currentPasswords=" + currentPasswords); |
| | | } |
| | | |
| | | |