You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/test/de/anomic/soap/services/CrawlServiceTest.java

30 lines
883 B

package de.anomic.soap.services;
import java.rmi.RemoteException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.rpc.ServiceException;
import org.apache.axis.AxisFault;
import org.apache.axis.utils.XMLUtils;
import org.w3c.dom.Document;
import yacy.soap.crawl.CrawlService;
import yacy.soap.crawl.CrawlServiceServiceLocator;
public class CrawlServiceTest extends AbstractServiceTest {
protected void createServiceClass() throws ServiceException {
// construct Soap object
CrawlServiceServiceLocator locator = new CrawlServiceServiceLocator();
locator.setcrawlEndpointAddress(getBaseServiceURL() + "crawl");
service = locator.getcrawl();
}
public void testGetCrawlPauseResumeState() throws RemoteException {
Document xml = ((CrawlService)service).getCrawlPauseResumeState();
System.out.println(XMLUtils.DocumentToString(xml));
}
}