| | |
| | | import org.testng.annotations.AfterClass; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.testng.ForgeRockTestCase; |
| | | import org.opends.server.replication.ReplicationTestCase; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | |
| | | TestCaseUtils.unsupressOutput(); |
| | | } |
| | | |
| | | // |
| | | // This is all a HACK to reduce the amount of memory that's consumed. |
| | | // |
| | | // This could be a problem if a subclass references a @DataProvider in |
| | | // a super-class that provides static parameters, i.e. the parameters are |
| | | // not regenerated for each invocation of the DataProvider. |
| | | // |
| | | |
| | | /** A list of all parameters that were generated by a @DataProvider |
| | | * and passed to a test method of this class. TestListener helps us |
| | |
| | | */ |
| | | @AfterClass(alwaysRun = true) |
| | | public void nullMemberVariablesAfterTest2() { |
| | | Class<?> cls = this.getClass(); |
| | | Class<?> cls = getClass(); |
| | | // Iterate through all of the fields in all subclasses of |
| | | // DirectoryServerTestCase, but not DirectoryServerTestCase itself. |
| | | while (DirectoryServerTestCase.class.isAssignableFrom(cls) && |