mirror of https://github.com/apache/lucene.git
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:
parent
06d319b97d
commit
19831e2208
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue