use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class SitemapsRuleTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("sitemapsHelper", //
SitemapsHelper.class).singleton("sitemapsRule", SitemapsRule.class);
sitemapsRule = container.getComponent("sitemapsRule");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class DataServiceImplTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("dataHelper", //
MemoryDataHelper.class).singleton("dataService", DataServiceImpl.class);
dataService = container.getComponent("dataService");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class CrawlerClientFactoryTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("mimeTypeHelper", //
MimeTypeHelperImpl.class).singleton("httpClient", //
FaultTolerantClient.class).singleton("fsClient", //
FileSystemClient.class).singleton("smbClient", //
SmbClient.class).singleton("clientFactory", CrawlerClientFactory.class);
clientFactory = container.getComponent("clientFactory");
FaultTolerantClient httpClient = container.getComponent("httpClient");
httpClient.setCrawlerClient(new HcHttpClient());
clientFactory.addClient("http:.*", httpClient);
clientFactory.addClient("https:.*", httpClient);
clientFactory.addClient("file:.*", container.getComponent("fsClient"));
clientFactory.addClient("smb:.*", container.getComponent("smbClient"));
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class FileSystemClientTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("mimeTypeHelper", //
MimeTypeHelperImpl.class).singleton("fsClient", FileSystemClient.class);
fsClient = container.getComponent("fsClient");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class FtpClientTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("mimeTypeHelper", //
MimeTypeHelperImpl.class).singleton("ftpClient", FtpClient.class);
ftpClient = container.getComponent("ftpClient");
}
Aggregations