mirror of https://github.com/apache/lucene.git
restructure test so that field cache sanity checking can still be used (some methods use the field cache in differnet ways, but each logical piece of functioanlity tested by a test method should be using it consistently)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@939887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7659e55ef
commit
3a29adfc6e
|
@ -31,7 +31,6 @@ public class SimpleFacetsTest extends SolrTestCaseJ4 {
|
|||
public static void beforeClass() throws Exception {
|
||||
initCore("solrconfig.xml","schema.xml");
|
||||
createIndex();
|
||||
checkFieldCacheSanity = false;
|
||||
}
|
||||
|
||||
static Random rand = new Random(); // TODO: a way to use lucene's newRandom()?
|
||||
|
@ -439,6 +438,9 @@ public class SimpleFacetsTest extends SolrTestCaseJ4 {
|
|||
@Test
|
||||
public void testFacetSingleValued() {
|
||||
doFacets("t_s1");
|
||||
}
|
||||
@Test
|
||||
public void testFacetSingleValuedFcs() {
|
||||
doFacets("t_s1","facet.method","fcs");
|
||||
}
|
||||
|
||||
|
@ -625,6 +627,9 @@ public class SimpleFacetsTest extends SolrTestCaseJ4 {
|
|||
@Test
|
||||
public void testFacetPrefixSingleValued() {
|
||||
doFacetPrefix("tt_s1", null);
|
||||
}
|
||||
@Test
|
||||
public void testFacetPrefixSingleValuedFcs() {
|
||||
doFacetPrefix("tt_s1", null, "facet.method","fcs");
|
||||
doFacetPrefix("tt_s1", "{!threads=0}", "facet.method","fcs"); // direct execution
|
||||
doFacetPrefix("tt_s1", "{!threads=-1}", "facet.method","fcs"); // default / unlimited threads
|
||||
|
|
Loading…
Reference in New Issue