SOLR-9107: Make SolrTestCaseJ4.beforeClass() / .afterClass() public

This commit is contained in:
Alan Woodward 2016-06-03 11:54:34 +01:00
parent 1eb6c9f816
commit aed3fc11b1
2 changed files with 6 additions and 5 deletions

View File

@ -351,6 +351,9 @@ Other Changes
* SOLR-9107: new @RandomizeSSL annotation for more fine grained control of SSL testing (hossman, sarowe)
* SOLR-9081: Make SolrTestCaseJ4.beforeClass() / .afterClass() public so it
works with Mockito (Georg Sorst, Alan Woodward)
================== 6.0.1 ==================
(No Changes)

View File

@ -218,9 +218,8 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
public TestRule solrTestRules =
RuleChain.outerRule(new SystemPropertiesRestoreRule());
@BeforeClass
@SuppressWarnings("unused")
private static void beforeClass() {
@BeforeClass
public static void setupTestCases() {
initCoreDataDir = createTempDir("init-core-data").toFile();
System.err.println("Creating dataDir: " + initCoreDataDir.getAbsolutePath());
@ -244,8 +243,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
}
@AfterClass
@SuppressWarnings("unused")
private static void afterClass() throws Exception {
public static void teardownTestCases() throws Exception {
try {
deleteCore();
resetExceptionIgnores();