@SolrTestCaseJ4.SuppressSSL @LuceneTestCase.SuppressCodecs(value={"Lucene3x","Lucene40","Lucene41","Lucene42","Lucene45","Appending","Asserting"}) public class SolrTestCaseHS extends SolrTestCaseJ4
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrTestCaseHS.Client |
static class |
SolrTestCaseHS.ClientProvider |
static class |
SolrTestCaseHS.SolrInstance |
static class |
SolrTestCaseHS.SolrInstances |
SolrTestCaseJ4.CoreDescriptorBuilder, SolrTestCaseJ4.Doc, SolrTestCaseJ4.Fld, SolrTestCaseJ4.FldType, SolrTestCaseJ4.FVal, SolrTestCaseJ4.IRange, SolrTestCaseJ4.IVals, SolrTestCaseJ4.IValsPercent, SolrTestCaseJ4.SuppressSSL, SolrTestCaseJ4.SVal, SolrTestCaseJ4.Vals, SolrTestCaseJ4.XmlDocorg.apache.lucene.util.LuceneTestCase.AwaitsFix, org.apache.lucene.util.LuceneTestCase.BadApple, org.apache.lucene.util.LuceneTestCase.Monster, org.apache.lucene.util.LuceneTestCase.Nightly, org.apache.lucene.util.LuceneTestCase.Slow, org.apache.lucene.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.util.LuceneTestCase.WeeklyconfigString, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TEST_COLLECTION_NAME, DEFAULT_TEST_CORENAME, h, hdfsDataDir, initCoreDataDir, log, lrf, ONE_ONE, schemaString, solrClassRules, solrConfig, solrTestRules, sslConfig, testSolrHome, ZERO_ONE, ZERO_TWOassertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, doesntSupportOffsets, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, OLD_FORMAT_IMPERSONATION_IS_ACTIVE, RANDOM_MULTIPLIER, ruleChain, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_VERSION_CURRENT, TEST_WEEKLY, VERBOSE| Constructor and Description |
|---|
SolrTestCaseHS() |
| Modifier and Type | Method and Description |
|---|---|
static Long |
add(org.apache.solr.client.solrj.SolrServer client,
org.apache.solr.common.SolrInputDocument sdoc,
org.apache.solr.common.params.ModifiableSolrParams params)
Adds a document using the specific client, or to the local test core if null.
|
static void |
assertJQ(org.apache.solr.client.solrj.SolrServer client,
org.apache.solr.common.params.SolrParams args,
String... tests)
Pass "null" for the client to query the local server
|
static void |
clearQueryCache() |
static void |
compare(org.apache.solr.request.SolrQueryRequest req,
String path,
Object model,
Map<Comparable,SolrTestCaseJ4.Doc> fullModel) |
static Object |
createDocObjects(Map<Comparable,SolrTestCaseJ4.Doc> fullModel,
Comparator sort,
int rows,
Collection<String> fieldNames) |
static String |
getJSON(org.apache.solr.client.solrj.SolrServer client,
org.apache.solr.common.params.SolrParams params) |
static String |
getQueryResponse(org.apache.solr.client.solrj.SolrServer client,
String wt,
org.apache.solr.common.params.SolrParams params) |
static String |
getQueryResponse(String wt,
org.apache.solr.common.params.SolrParams params) |
static void |
matchJSON(String response,
String... tests) |
static org.apache.solr.common.params.ModifiableSolrParams |
params(org.apache.solr.common.params.SolrParams params,
String... moreParams) |
static <T> T |
rand(T... vals) |
static <T> Set<T> |
set(T... a) |
static Map<String,Object> |
toObject(SolrTestCaseJ4.Doc doc,
org.apache.solr.schema.IndexSchema schema,
Collection<String> fieldNames) |
add, addAndGetVersion, adoc, adoc, assertFailedU, assertFailedU, assertFieldValues, assertJQ, assertJQ, assertNonBlockingRandomGeneratorAvailable, assertQ, assertQ, assertQEx, assertQEx, assertQEx, assertSolrInputFieldEquals, assertU, assertU, assertXmlFile, buildCoreDescriptor, buildJettyConfig, buildUrl, clearIndex, commit, compareSolrDocument, compareSolrDocumentList, compareSolrInputDocument, copyMinConf, copyMinConf, copyMinFullSetup, copySolrHomeToTemp, copySolrHomeToTemp, createComparator, createComparator, createCore, createCoreContainer, createDefaultCoreContainer, createDoc, createSort, deleteAndGetVersion, deleteByQueryAndGetVersion, deleteCore, delI, delQ, doc, endTrackingSearchers, endTrackingZkClients, getClassName, getFile, getRootCause, getSchemaFile, getSimpleClassName, getSolrConfigFile, getWrappedException, hasInitException, hasInitException, ignoreException, indexDocs, initCore, initCore, initCore, initCore, invertField, isSSLMode, JQ, json, json, json, jsonAdd, jsonDelId, jsonDelQ, map, newRandomConfig, optimize, params, postSetUp, preTearDown, randomDate, randomSkewedDate, randomXmlUsableUnicodeString, recurseDelete, req, req, req, resetExceptionIgnores, resetFactory, sdoc, sdocs, sdocWithChildren, sdocWithChildren, sdocWithChildren, setLoggingLevel, setUp, setupNoCoreTest, skewed, startTrackingSearchers, startTrackingZkClients, tearDown, TEST_HOME, TEST_PATH, toJSON, unIgnoreException, updateJ, useFactoryassertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertFieldsEquals, assertFieldStatisticsEquals, assertNormsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertSaneFieldCaches, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, atLeast, atLeast, closeAfterSuite, closeAfterTest, createTempDir, createTempDir, createTempFile, createTempFile, defaultCodecSupportsDocsWithField, defaultCodecSupportsDocValues, defaultCodecSupportsFieldUpdates, defaultCodecSupportsMissingDocValues, defaultCodecSupportsSegmentIds, defaultCodecSupportsSortedNumeric, defaultCodecSupportsSortedSet, dumpArray, dumpIterator, getBaseTempDirForTestClass, getDataFile, getOnlySegmentReader, getTestClass, getTestName, isTestThread, localeForName, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, restoreIndexWriterMaxDocs, setIndexWriterMaxDocs, slowFileExists, usually, usuallyassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail@SafeVarargs public static <T> Set<T> set(T... a)
public static <T> T rand(T... vals)
public static org.apache.solr.common.params.ModifiableSolrParams params(org.apache.solr.common.params.SolrParams params,
String... moreParams)
public static Map<String,Object> toObject(SolrTestCaseJ4.Doc doc, org.apache.solr.schema.IndexSchema schema, Collection<String> fieldNames)
public static Object createDocObjects(Map<Comparable,SolrTestCaseJ4.Doc> fullModel, Comparator sort, int rows, Collection<String> fieldNames)
public static void compare(org.apache.solr.request.SolrQueryRequest req,
String path,
Object model,
Map<Comparable,SolrTestCaseJ4.Doc> fullModel)
throws Exception
Exceptionpublic static void assertJQ(org.apache.solr.client.solrj.SolrServer client,
org.apache.solr.common.params.SolrParams args,
String... tests)
throws Exception
Exceptionpublic static void matchJSON(String response, String... tests) throws Exception
Exceptionpublic static void clearQueryCache()
public static String getQueryResponse(org.apache.solr.client.solrj.SolrServer client, String wt, org.apache.solr.common.params.SolrParams params) throws Exception
Exceptionpublic static String getQueryResponse(String wt, org.apache.solr.common.params.SolrParams params) throws Exception
Exceptionpublic static String getJSON(org.apache.solr.client.solrj.SolrServer client, org.apache.solr.common.params.SolrParams params) throws Exception
Exceptionpublic static Long add(org.apache.solr.client.solrj.SolrServer client, org.apache.solr.common.SolrInputDocument sdoc, org.apache.solr.common.params.ModifiableSolrParams params) throws Exception
ExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.