File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/test/java/org/springframework/data/elasticsearch/repositories Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1919import org .junit .runner .RunWith ;
2020import org .springframework .beans .factory .annotation .Autowired ;
2121import org .springframework .data .elasticsearch .core .ElasticsearchTemplate ;
22+ import org .springframework .data .elasticsearch .entities .Book ;
2223import org .springframework .data .elasticsearch .entities .Person ;
2324import org .springframework .test .context .ContextConfiguration ;
2425import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
@@ -38,6 +39,9 @@ public class NestedObjectTests {
3839
3940 @ Before
4041 public void before () {
42+ elasticsearchTemplate .deleteIndex (Book .class );
43+ elasticsearchTemplate .createIndex (Book .class );
44+ elasticsearchTemplate .refresh (Book .class , true );
4145 elasticsearchTemplate .deleteIndex (Person .class );
4246 elasticsearchTemplate .createIndex (Person .class );
4347 elasticsearchTemplate .putMapping (Person .class );
You can’t perform that action at this time.
0 commit comments