Browse Source

[TEST] removed leftover ElasticsearchIntegrationTest#randomIndexTemplate

used cluster().randomIndexTemplate instead
javanna 11 years ago
parent
commit
c5e6749e12

+ 1 - 9
src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java

@@ -199,7 +199,7 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
             }
             currentCluster.beforeTest(getRandom(), getPerTestTransportClientRatio());
             cluster().wipe();
-            randomIndexTemplate();
+            cluster().randomIndexTemplate();
             logger.info("[{}#{}]: before test", getTestClass().getSimpleName(), getTestName());
         } catch (OutOfMemoryError e) {
             if (e.getMessage().contains("unable to create new native thread")) {
@@ -278,14 +278,6 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
         return client;
     }
 
-    /**
-     * Creates a randomized index template. This template is used to pass in randomized settings on a
-     * per index basis.
-     */
-    private static void randomIndexTemplate() {
-        cluster().randomIndexTemplate();
-    }
-
     public static Iterable<Client> clients() {
         return cluster();
     }