org.globus.ogsa.impl.ogsi.test
Class TestServiceDataCompatibility

java.lang.Object
  extended byTestCase
      extended byorg.globus.ogsa.server.test.GridTestCase
          extended byorg.globus.ogsa.impl.ogsi.test.TestServiceDataCompatibility
All Implemented Interfaces:
NotificationSinkCallback, ServiceProperties

public class TestServiceDataCompatibility
extends GridTestCase
implements NotificationSinkCallback

tests service data lookup of draft 4 compatible SDEs

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.globus.ogsa.server.test.GridTestCase
TEST_SERVER
 
Fields inherited from interface org.globus.ogsa.ServiceProperties
ACTIVATE_ON_STARTUP, ACTIVATION, BASE_CLASS_NAME, BOOTSTRAP, CONFIG_PATH, CONTAINS_REFERENCE, CREATION_EXTENSIBILITY, CREATION_EXTENSIBILITY_OUTPUT, CUSTOM_EXTENSIBILITY_DESERIALIZER, CUSTOM_EXTENSIBILITY_SERIALIZER, CUSTOM_MAPPING_REGISTERED, DEACTIVATED_PERSISTENT, DEACTIVATED_STATE, DEACTIVATED_TRANSIENT, DEACTIVATION, DESTROY_LISTENER, DESTRUCTION_SKELETON, DISABLE_FACTORY_REGISTRY, ENDPOINT, ENTRY_INSTANCE_CREATION, FACTORY, FACTORY_CALLBACK, FACTORY_HANDLE, FACTORY_PROVIDER, FACTORY_REGISTRY, GSR_DESCRIPTION, HANDLE, HANDLE_PORT, HANDLE_PROTOCOL, INSTANCE_CLASS, INSTANCE_DEACTIVATION, INSTANCE_GSR_DESCRIPTION, INSTANCE_LIFECYCLE, INSTANCE_PORT_TYPE, INSTANCE_PORT_TYPE_NS, INSTANCE_PREFIX, INSTANCE_REGISTRY, INSTANCE_SCHEMA_PATH, INSTANCE_WSDL, INTERFACE_CLASS_NAME, INVOCATION_ID, LAZY_CREATION, LIFECYCLE, LIFECYCLE_MONITOR, LIFECYCLE_MONITOR_CLASS, NAME, NOTIFICATION_ENGINE, NOTIFICATION_FACTORY, NOTIFICATION_SOURCE, OPERATION_PROVIDERS, PERSISTENT, PERSISTENT_PROPERTIES, PORT, PORT_TYPE, PORT_TYPE_NS, PRIMARY_KEY, PROTOCOL, QUERY_ENGINE, REDIRECT_RESOLVER, REGISTRY, RESOLVER_CACHE, ROUTER_HEADER, ROUTER_VIA, SCHEMA_LOCATION, SCHEMA_PATH, SERVICE_ACTIVATOR, SERVICE_DATA, SERVICE_DEPLOYMENT, SERVICE_GROUP_ENTRY, SERVICE_GROUP_PROVIDER, SERVICE_LOADER, SERVICE_NODE, SERVICE_PATH, SINK_ID, STARTUP_STATE, SWEEP_SERVICE_DATA, TIMEOUT, TIMESTAMP, TRANSIENT, TYPE, USER, WEBSTART_PANEL_NAME, WEBSTART_URL, WSDL
 
Constructor Summary
TestServiceDataCompatibility(java.lang.String name)
           
 
Method Summary
 void createsInterfaceTest(GridService service, QName searchQname)
           
 void deliverNotification(ExtensibilityType message)
           
 void expressionTest(GridService service)
           
 void factoryHandleTest(GridService service, GridService factory)
           
 void flush()
          gives a hint that this property should be checkpointed to the deployment descriptor, it is however not guaranteed that the properties have been persisted when the method returns
 java.lang.Object getPersistentProperty(java.lang.String key)
          gets a persistent property (checkpointed to deployment descriptor) keyed by name
 java.lang.Object getProperty(java.lang.String key)
          gets a property keyed by name
 QName interfaceTest(GridService service)
           
 boolean isContained(java.lang.String element, java.lang.String[] elementSet)
           
 void notifiableNamesTest(GridService service)
           
 void notificationSubscriptionTest(GridServiceFactory factory)
           
 java.lang.String[] resolverSchemesTest(GridService service)
           
 void serviceDataNamesTest(GridService service, QName[] searchQnames)
           
 java.lang.String[] serviceHandlesTest(GridService service)
           
 void serviceReferencesTest(GridService service)
           
 void setPersistentProperty(java.lang.String key, java.lang.Object val)
          sets a persistent property (checkpointed to deployment descriptor) keyed by name
 void setProperty(java.lang.String key, java.lang.Object val)
          sets a property keyed by name
 void setServiceDataTest(GridService service)
           
protected  void setUp()
           
 void sinkLocatorTest(GridService service)
           
 void subscribeExpressionTest(GridService service)
           
static Test suite()
           
 void terminationTimeTest(GridService service, ExtendedDateTimeType time)
           
 void testFactory()
           
 void testGridService()
           
 void testHandleResolver()
           
 void testNotification()
           
 void testRegistration()
           
 
Methods inherited from class org.globus.ogsa.server.test.GridTestCase
setTestServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestServiceDataCompatibility

public TestServiceDataCompatibility(java.lang.String name)
Method Detail

suite

public static Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class GridTestCase
Throws:
java.lang.Exception

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: ServiceProperties
gets a property keyed by name

Specified by:
getProperty in interface ServiceProperties
Parameters:
key - property key
Returns:
property value or null

getPersistentProperty

public java.lang.Object getPersistentProperty(java.lang.String key)
Description copied from interface: ServiceProperties
gets a persistent property (checkpointed to deployment descriptor) keyed by name

Specified by:
getPersistentProperty in interface ServiceProperties
Parameters:
key - property key
Returns:
property value or null

setPersistentProperty

public void setPersistentProperty(java.lang.String key,
                                  java.lang.Object val)
Description copied from interface: ServiceProperties
sets a persistent property (checkpointed to deployment descriptor) keyed by name

Specified by:
setPersistentProperty in interface ServiceProperties
Parameters:
key - property key
val - property value, if null the property will be removed (if it exists)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object val)
Description copied from interface: ServiceProperties
sets a property keyed by name

Specified by:
setProperty in interface ServiceProperties
Parameters:
key - property key
val - property value, if null the property will be removed (if it exists)

flush

public void flush()
Description copied from interface: ServiceProperties
gives a hint that this property should be checkpointed to the deployment descriptor, it is however not guaranteed that the properties have been persisted when the method returns

Specified by:
flush in interface ServiceProperties

testGridService

public void testGridService()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testRegistration

public void testRegistration()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testFactory

public void testFactory()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testNotification

public void testNotification()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testHandleResolver

public void testHandleResolver()
                        throws java.lang.Exception
Throws:
java.lang.Exception

resolverSchemesTest

public java.lang.String[] resolverSchemesTest(GridService service)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

subscribeExpressionTest

public void subscribeExpressionTest(GridService service)
                             throws java.lang.Exception
Throws:
java.lang.Exception

notifiableNamesTest

public void notifiableNamesTest(GridService service)
                         throws java.lang.Exception
Throws:
java.lang.Exception

notificationSubscriptionTest

public void notificationSubscriptionTest(GridServiceFactory factory)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

deliverNotification

public void deliverNotification(ExtensibilityType message)
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

sinkLocatorTest

public void sinkLocatorTest(GridService service)
                     throws java.lang.Exception
Throws:
java.lang.Exception

createsInterfaceTest

public void createsInterfaceTest(GridService service,
                                 QName searchQname)
                          throws java.lang.Exception
Throws:
java.lang.Exception

serviceDataNamesTest

public void serviceDataNamesTest(GridService service,
                                 QName[] searchQnames)
                          throws java.lang.Exception
Throws:
java.lang.Exception

expressionTest

public void expressionTest(GridService service)
                    throws java.lang.Exception
Throws:
java.lang.Exception

setServiceDataTest

public void setServiceDataTest(GridService service)
                        throws java.lang.Exception
Throws:
java.lang.Exception

interfaceTest

public QName interfaceTest(GridService service)
                    throws java.lang.Exception
Throws:
java.lang.Exception

terminationTimeTest

public void terminationTimeTest(GridService service,
                                ExtendedDateTimeType time)
                         throws java.lang.Exception
Throws:
java.lang.Exception

factoryHandleTest

public void factoryHandleTest(GridService service,
                              GridService factory)
                       throws java.lang.Exception
Throws:
java.lang.Exception

serviceHandlesTest

public java.lang.String[] serviceHandlesTest(GridService service)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

isContained

public boolean isContained(java.lang.String element,
                           java.lang.String[] elementSet)

serviceReferencesTest

public void serviceReferencesTest(GridService service)
                           throws java.lang.Exception
Throws:
java.lang.Exception