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.
43 lines
1.3 KiB
43 lines
1.3 KiB
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(10,10,10,10);
|
|
System.out.println(XMLUtils.DocumentToString(xml));
|
|
}
|
|
|
|
public void testStatus() throws RemoteException {
|
|
Document xml = ((StatusService)service).getStatus();
|
|
System.out.println(XMLUtils.DocumentToString(xml));
|
|
}
|
|
|
|
public void testPeerList() throws RemoteException {
|
|
Document xml = ((StatusService)service).peerList("active",300,true);
|
|
System.out.println(XMLUtils.DocumentToString(xml));
|
|
}
|
|
}
|