public class IndexerService_UT extends BaseTestCase
classesDir, discoveryEnvUtil, LOG, solrHome| Constructor and Description |
|---|
IndexerService_UT() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupDiscoveryData() |
protected void |
deleteTestData() |
void |
deleteTestDataWithConfirm() |
void |
display(RequestDocument requestDocument) |
protected String |
getRecordField(String filedName,
String fieldValue) |
Request |
getRequest(String filePath) |
List<RequestDocument> |
getRequestDocumentList(String path) |
protected List<String> |
getUUIDsByAuthor(String authorName) |
protected void |
indexTestFile(String docCategory,
String docType,
String docFormat,
String resFile) |
void |
invokeIndexDocumentsFromDirBySolrDoc(String path) |
void |
invokeIndexDocumentsFromFileBySolrDoc(String docCategory,
String docType,
String docFormat,
String requestFile) |
void |
invokeIndexDocumentsFromStringBySolrDoc(String requestFile) |
void |
modifyRequestDocument(RequestDocument requestDocument) |
void |
printFinalLog() |
void |
printInitialLog() |
org.apache.solr.client.solrj.response.QueryResponse |
searchBibRecord(String docCat,
String docType,
String docFormat,
String fieldNameIdentifier,
String fieldValueIdentifier) |
org.apache.solr.client.solrj.response.QueryResponse |
searchHoldingRecord(String docCat,
String docType,
String docFormat,
String fieldNameIdentifier,
String fieldValueIdentifier) |
org.apache.solr.client.solrj.response.QueryResponse |
searchInstanceRecord(String docCat,
String docType,
String docFormat,
String fieldNameIdentifier,
String fieldValueIdentifier) |
org.apache.solr.client.solrj.response.QueryResponse |
searchItemsRecord(String docCat,
String docType,
String docFormat,
String fieldNameIdentifier,
String fieldValueIdentifier) |
org.apache.solr.client.solrj.response.QueryResponse |
searchRecord(String docCat,
String docType,
String docFormat,
String fieldName,
String fieldValue) |
void |
setUp() |
void |
testDeleteDocument() |
void |
testDeleteDocuments() |
void |
testdeleteDocumentsByUUIDList() |
void |
testDublinBulkIndex() |
void |
testDublinUnqBulkIndex() |
void |
testIndexDocument() |
void |
testIndexDocumentFromStringBySolr() |
void |
testIndexDocuments() |
void |
testIndexDocumentsForBinary() |
void |
testIndexDocumentsForONIXPL() |
void |
testIndexDocumentsFromDirBySolrDocWithConfirm() |
void |
testIndexDocumentsFromFilesBySolrDoc() |
void |
testIndexDocumentsWithInvalidDirectoryORFile() |
void |
testInstanceBulkIndex()
Test the bulk indexing of instance records, which also links them with the already indexed Bib records.
|
void |
testSpecialCharsInInput() |
void |
testWorkInstanceOlemlIndexDocuments() |
cleanUpData, executeQuery, getCallingMethod, getMethodName, getRecordCount, printLogInfo, readFilepublic IndexerService_UT()
public void setUp() throws Exception
setUp in class BaseTestCaseExceptionpublic void testInstanceBulkIndex()
public void testDublinBulkIndex() throws Exception
Exceptionpublic void testDublinUnqBulkIndex() throws Exception
Exceptionpublic List<RequestDocument> getRequestDocumentList(String path) throws Exception
Exceptionpublic void testDeleteDocuments() throws Exception
Exceptionpublic void testDeleteDocument() throws Exception
Exceptionpublic void testIndexDocumentsFromFilesBySolrDoc() throws Exception
Exceptionpublic void testIndexDocumentsFromDirBySolrDocWithConfirm() throws Exception
Exceptionpublic void testIndexDocumentsWithInvalidDirectoryORFile() throws Exception
Exceptionpublic void invokeIndexDocumentsFromDirBySolrDoc(String path)
public void testIndexDocumentFromStringBySolr() throws Exception
Exceptionpublic void invokeIndexDocumentsFromStringBySolrDoc(String requestFile) throws Exception
Exceptionpublic void invokeIndexDocumentsFromFileBySolrDoc(String docCategory, String docType, String docFormat, String requestFile) throws Exception
Exceptionpublic void deleteTestDataWithConfirm()
public void testSpecialCharsInInput()
protected void indexTestFile(String docCategory, String docType, String docFormat, String resFile) throws Exception
Exceptionprotected void deleteTestData()
protected List<String> getUUIDsByAuthor(String authorName) throws Exception
Exceptionpublic void testWorkInstanceOlemlIndexDocuments() throws Exception
Exceptionpublic org.apache.solr.client.solrj.response.QueryResponse searchRecord(String docCat, String docType, String docFormat, String fieldName, String fieldValue) throws Exception
Exceptionpublic org.apache.solr.client.solrj.response.QueryResponse searchBibRecord(String docCat, String docType, String docFormat, String fieldNameIdentifier, String fieldValueIdentifier) throws Exception
Exceptionpublic org.apache.solr.client.solrj.response.QueryResponse searchInstanceRecord(String docCat, String docType, String docFormat, String fieldNameIdentifier, String fieldValueIdentifier) throws Exception
Exceptionpublic org.apache.solr.client.solrj.response.QueryResponse searchHoldingRecord(String docCat, String docType, String docFormat, String fieldNameIdentifier, String fieldValueIdentifier) throws Exception
Exceptionpublic org.apache.solr.client.solrj.response.QueryResponse searchItemsRecord(String docCat, String docType, String docFormat, String fieldNameIdentifier, String fieldValueIdentifier) throws Exception
Exceptionpublic void modifyRequestDocument(RequestDocument requestDocument)
public void display(RequestDocument requestDocument)
public void testIndexDocuments() throws Exception
Exceptionprotected String getRecordField(String filedName, String fieldValue) throws Exception
Exceptionpublic void testIndexDocument()
public void testdeleteDocumentsByUUIDList()
public void testIndexDocumentsForONIXPL() throws Exception
Exceptionpublic void testIndexDocumentsForBinary() throws Exception
Exceptionpublic void cleanupDiscoveryData() throws Exception
Exceptionpublic Request getRequest(String filePath) throws Exception
Exceptionpublic void printInitialLog() throws Exception
Exceptionpublic void printFinalLog() throws Exception
ExceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.