package com.jeromeloisel.db.integration.test;

import org.elasticsearch.client.Client;
import org.elasticsearch.client.IndicesAdminClient;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import static org.junit.Assert.assertNotNull;

public class ESTest extends SpringElasticSearchTest {

  @Autowired
  private Client client;
  
  @Test
  public void shouldAutowire() {
    assertNotNull(client);
    final IndicesAdminClient indices = client.admin().indices();
    indices.prepareCreate("test").execute().actionGet();
    flush("test");
    indices.prepareDelete("test").execute().actionGet();
  }
}

@@ -44,48 +44,8 @@
 t;%0A%0A
-import org.elasticsearch.client.Client;%0A
 impo
@@ -118,71 +118,8 @@
 est;
-%0Aimport org.springframework.beans.factory.annotation.Autowired;
 %0A%0Aim
@@ -222,49 +222,8 @@
  %7B%0A%0A
-  @Autowired%0A  private Client client;%0A  %0A
   @T
@@ -487,11 +487,109 @@
 t();%0A  %7D
+%0A%0A  @Test%0A  @Override%0A  public void shouldAutowireClient() %7B%0A    super.shouldAutowireClient();%0A  %7D
 %0A%7D%0A

fix junit