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/StatusServiceTest.java

33 lines
971 B

package de.anomic.soap.services;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import org.apache.axis.utils.XMLUtils;
import org.w3c.dom.Document;
import yacy.soap.status.StatusService;
import yacy.soap.status.StatusServiceServiceLocator;
public class StatusServiceTest extends AbstractServiceTest {
protected void createServiceClass() throws ServiceException {
// construct Soap object
StatusServiceServiceLocator locator = new StatusServiceServiceLocator();
locator.setstatusEndpointAddress(getBaseServiceURL() + "status");
service = locator.getstatus();
}
public void testNetwork() throws RemoteException {
Document xml = ((StatusService)service).network();
System.out.println(XMLUtils.DocumentToString(xml));
}
public void testGetQueueStatus() throws RemoteException {
Document xml = ((StatusService)service).getQueueStatus(null,null,null,null);
System.out.println(XMLUtils.DocumentToString(xml));
}
}