package edu.wustl.cab2b.server.serviceurl;
import java.rmi.RemoteException;

import junit.framework.TestCase;

import org.apache.axis.message.addressing.EndpointReferenceType;
import org.apache.axis.types.URI.MalformedURIException;

public class IndexServiceOperationsTest extends TestCase {

    public void testGetServicesByNames() {
        IndexServiceOperations indexOperations = new IndexServiceOperations();
        EndpointReferenceType[] eprArray = null;
        try {
            eprArray = indexOperations.getServicesByNames("caNanoLab");
        } catch (MalformedURIException e) {
            e.printStackTrace();
            assertFalse(true);
        } catch (RemoteException e) {
            e.printStackTrace();
            assertFalse(true);
        }
        assertTrue(eprArray != null || eprArray.length > 0);
    }
}
@@ -37,16 +37,71 @@
 ceurl;%0D%0A
+import gov.nih.nci.cagrid.metadata.ServiceMetadata;%0D%0A%0D%0A
 import j
@@ -125,16 +125,39 @@
 eption;%0D
+%0Aimport java.util.Map;%0D
 %0A%0D%0Aimpor
@@ -510,31 +510,36 @@
     
-EndpointReferenceType%5B%5D
+Map%3CString, ServiceMetadata%3E
  epr
@@ -637,16 +637,21 @@
 NanoLab%22
+,null
 );%0D%0A    
@@ -925,14 +925,14 @@
 ray.
-length
+size()
  %3E 0

method sign. changed