Search in sources :

Example 1 with MSExcelIndexerWrapper

use of org.wso2.carbon.apimgt.impl.indexing.indexer.util.MSExcelIndexerWrapper in project carbon-apimgt by wso2.

the class MSExcelIndexerTest method setup.

@Before
public void setup() {
    excelExtractor = Mockito.mock(ExcelExtractor.class);
    xssfExtractor = Mockito.mock(XSSFExcelExtractor.class);
    msExcelIndexer = new MSExcelIndexerWrapper(xssfExtractor, excelExtractor);
    file2Index = new AsyncIndexer.File2Index("".getBytes(), "", "", -1234, "");
}
Also used : MSExcelIndexerWrapper(org.wso2.carbon.apimgt.impl.indexing.indexer.util.MSExcelIndexerWrapper) XSSFExcelExtractor(org.apache.poi.xssf.extractor.XSSFExcelExtractor) AsyncIndexer(org.wso2.carbon.registry.indexing.AsyncIndexer) XSSFExcelExtractor(org.apache.poi.xssf.extractor.XSSFExcelExtractor) ExcelExtractor(org.apache.poi.hssf.extractor.ExcelExtractor) Before(org.junit.Before)

Aggregations

ExcelExtractor (org.apache.poi.hssf.extractor.ExcelExtractor)1 XSSFExcelExtractor (org.apache.poi.xssf.extractor.XSSFExcelExtractor)1 Before (org.junit.Before)1 MSExcelIndexerWrapper (org.wso2.carbon.apimgt.impl.indexing.indexer.util.MSExcelIndexerWrapper)1 AsyncIndexer (org.wso2.carbon.registry.indexing.AsyncIndexer)1