mirror of https://github.com/apache/lucene.git
SOLR-9107: Make SolrTestCaseJ4.beforeClass() / .afterClass() public
This commit is contained in:
parent
1eb6c9f816
commit
aed3fc11b1
|
@ -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)
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue