epugh commented on code in PR #3988:
URL: https://github.com/apache/solr/pull/3988#discussion_r2661480827


##########
solr/core/src/test/org/apache/solr/schema/TestBinaryField.java:
##########
@@ -33,44 +30,34 @@
 import org.apache.solr.common.SolrDocument;
 import org.apache.solr.common.SolrDocumentList;
 import org.apache.solr.common.SolrInputDocument;
+import org.apache.solr.util.SolrJettyTestRule;
 import org.junit.BeforeClass;
+import org.junit.ClassRule;
 
 @SuppressSSL(bugUrl = "https://issues.apache.org/jira/browse/SOLR-5776";)
-public class TestBinaryField extends SolrJettyTestBase {
+public class TestBinaryField extends SolrTestCaseJ4 {
+
+  @ClassRule public static SolrJettyTestRule solrTestRule = new 
SolrJettyTestRule();
 
   @BeforeClass
   public static void beforeTest() throws Exception {
     Path homeDir = createTempDir();
-
     Path collDir = homeDir.resolve("collection1");
-    Path dataDir = collDir.resolve("data");
-    Path confDir = collDir.resolve("conf");
 
-    Files.createDirectories(homeDir);
-    Files.createDirectories(collDir);
-    Files.createDirectories(dataDir);
-    Files.createDirectories(confDir);
+    copyMinConf(collDir, "name=collection1\n", "solrconfig-basic.xml");
 
-    String src_dir = TEST_HOME() + "/collection1/conf";
-    Files.copy(Path.of(src_dir, "schema-binaryfield.xml"), 
confDir.resolve("schema.xml"));
-    Files.copy(Path.of(src_dir, "solrconfig-basic.xml"), 
confDir.resolve("solrconfig.xml"));
+    // Copy the custom schema for binary field tests
+    String sourceConfDir = TEST_HOME() + "/collection1/conf";

Review Comment:
   I wish we had a rule that would prevent these from happening...   I created 
https://issues.apache.org/jira/browse/SOLR-18057 to at least track this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to