You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ge...@apache.org on 2024/02/02 17:40:47 UTC

(solr) branch branch_9x updated: SOLR-17068: Fix tidy/check

This is an automated email from the ASF dual-hosted git repository.

gerlowskija pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 0ce7a6690ca SOLR-17068: Fix tidy/check
0ce7a6690ca is described below

commit 0ce7a6690ca05be8022aabec54f3832fedaed743
Author: Jason Gerlowski <ge...@apache.org>
AuthorDate: Fri Feb 2 12:40:17 2024 -0500

    SOLR-17068: Fix tidy/check
    
    A previous commit had left some 'tidy' violations in PostToolTest.
---
 solr/core/src/test/org/apache/solr/cli/PostToolTest.java | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/cli/PostToolTest.java b/solr/core/src/test/org/apache/solr/cli/PostToolTest.java
index c217c82f26e..e40db69a39e 100644
--- a/solr/core/src/test/org/apache/solr/cli/PostToolTest.java
+++ b/solr/core/src/test/org/apache/solr/cli/PostToolTest.java
@@ -29,19 +29,17 @@ import org.apache.solr.client.solrj.request.CollectionAdminRequest;
 import org.apache.solr.cloud.SolrCloudTestCase;
 import org.apache.solr.common.util.EnvUtils;
 import org.apache.solr.common.util.Utils;
-
 import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class PostToolTest extends SolrCloudTestCase {
 
-
   @BeforeClass
   public static void setupCluster() throws Exception {
     configureCluster(1)
-            .addConfig(
-                    "config", TEST_PATH().resolve("configsets").resolve("cloud-minimal").resolve("conf"))
-            .configure();
+        .addConfig(
+            "config", TEST_PATH().resolve("configsets").resolve("cloud-minimal").resolve("conf"))
+        .configure();
   }
 
   @Test
@@ -72,7 +70,7 @@ public class PostToolTest extends SolrCloudTestCase {
     // Provide the port as an environment variable for the PostTool to look up.
     EnvUtils.setEnv("SOLR_PORT", cluster.getJettySolrRunner(0).getLocalPort() + "");
 
-   CollectionAdminRequest.createCollection(collection, "conf1", 1, 1, 0, 0)
+    CollectionAdminRequest.createCollection(collection, "conf1", 1, 1, 0, 0)
         .processAndWait(cluster.getSolrClient(), 10);
 
     File jsonDoc = File.createTempFile("temp", "json");
@@ -80,9 +78,7 @@ public class PostToolTest extends SolrCloudTestCase {
     FileWriter fw = new FileWriter(jsonDoc, StandardCharsets.UTF_8);
     Utils.writeJson(Utils.toJSONString(Map.of("id", "1", "title", "mytitle")), fw, true);
 
-    String[] args = {
-      "post", "-c", collection, jsonDoc.getAbsolutePath()
-    };
+    String[] args = {"post", "-c", collection, jsonDoc.getAbsolutePath()};
     assertEquals(0, runTool(args));
   }