mirror of https://github.com/apache/lucene.git
SOLR-9107: Make SolrTestCaseJ4.beforeClass() / .afterClass() public
This commit is contained in:
parent
7f82139369
commit
ec40824bfd
|
@ -318,6 +318,9 @@ Other Changes
|
|||
* SOLR-9136: Separate out the error statistics into server-side error vs client-side error
|
||||
(Jessica Cheng Mallet via Erick Erickson)
|
||||
|
||||
* SOLR-9081: Make SolrTestCaseJ4.beforeClass() / .afterClass() public so it
|
||||
works with Mockito (Georg Sorst, Alan Woodward)
|
||||
|
||||
================== 6.0.1 ==================
|
||||
(No Changes)
|
||||
|
||||
|
|
|
@ -216,9 +216,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());
|
||||
|
@ -242,8 +241,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