SOLR-2673: clear index in setUp

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1150389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-07-24 14:51:11 +00:00
parent 06d319b97d
commit 19831e2208
1 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,12 @@ public class RequiredFieldsTest extends SolrTestCaseJ4 {
initCore("solrconfig.xml","schema-required-fields.xml"); initCore("solrconfig.xml","schema-required-fields.xml");
} }
@Override
public void setUp() throws Exception {
super.setUp();
clearIndex();
}
@Test @Test
public void testRequiredFieldsConfig() { public void testRequiredFieldsConfig() {
SolrCore core = h.getCore(); SolrCore core = h.getCore();
@ -81,7 +87,6 @@ public class RequiredFieldsTest extends SolrTestCaseJ4 {
// Check to make sure this submission did not succeed // Check to make sure this submission did not succeed
assertQ("should not find any", req("id:531") ,"//result[@numFound=0]" ); assertQ("should not find any", req("id:531") ,"//result[@numFound=0]" );
clearIndex();
} }
@Test @Test