1.0.0

org.eclipse.soda.dk.testagent.framework
Class NotificationClientTestCase

java.lang.Object
  extended by TestCase
      extended by org.eclipse.soda.dk.testagent.framework.ConfiguredTestCase
          extended by org.eclipse.soda.dk.testagent.framework.NotificationClientTestCase
Direct Known Subclasses:
NotificationProbeTestCase

public abstract class NotificationClientTestCase
extends ConfiguredTestCase

Version:
1.0.0

Constructor Summary
NotificationClientTestCase()
          No-arg constructor to enable serialization.
NotificationClientTestCase(java.lang.String name)
          Constructs a test case with the given name.
 
Method Summary
 void broadcast(java.lang.String topic, java.util.Dictionary data)
          Publish with the specified arg0 and arg1 parameters.
 void broadcast(java.lang.String topic, java.lang.Object dataKey, java.lang.Object dataValue)
          Broadcast with the specified topic, data key and data value parameters.
protected  java.lang.String[] getExternalKeys()
          Gets the external keys (String[]) value.
 NotificationService getNotificationService()
           
 NotificationProbe getProbe()
           
 void register(java.lang.String topic)
          Subscribe with the specified topic parameter.
 void register(java.lang.String[] topics)
          Subscribe with the specified topics parameter.
protected  void setUp()
          Set up.
protected  void tearDown()
          Tear down.
 void unregister()
          Unregister.
 
Methods inherited from class org.eclipse.soda.dk.testagent.framework.ConfiguredTestCase
getBoolean, getConfigurationService, getContext, getFloat, getInt, getLong, getObject, getProperties, getString, getSynchronizationService, requestConfirmation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationClientTestCase

public NotificationClientTestCase()
No-arg constructor to enable serialization. This method is not intended to be used by mere mortals without calling setName().

See Also:
NotificationClientTestCase(String)

NotificationClientTestCase

public NotificationClientTestCase(java.lang.String name)
Constructs a test case with the given name.

Parameters:
name - The name (String) parameter.
See Also:
NotificationClientTestCase()
Method Detail

broadcast

public void broadcast(java.lang.String topic,
                      java.util.Dictionary data)
Publish with the specified arg0 and arg1 parameters. The arg0 (String) parameter. The arg1 (Object) parameter. The topic (String) parameter. The data (Object) parameter.

Parameters:
topic - The topic (String) parameter.
data - The data (Dictionary) parameter.
See Also:
broadcast(String,Object,Object)

broadcast

public void broadcast(java.lang.String topic,
                      java.lang.Object dataKey,
                      java.lang.Object dataValue)
Broadcast with the specified topic, data key and data value parameters.

Parameters:
topic - The topic (String) parameter.
dataKey - The data key (Object) parameter.
dataValue - The data value (Object) parameter.
See Also:
broadcast(String,Dictionary)

getExternalKeys

protected java.lang.String[] getExternalKeys()
Gets the external keys (String[]) value.

Returns:
The external keys (String[]) value.

getNotificationService

public NotificationService getNotificationService()
Returns:
the notificationService

getProbe

public NotificationProbe getProbe()
Returns:
the probe

register

public void register(java.lang.String topic)
Subscribe with the specified topic parameter. The topic (String) parameter. The topics (String) parameter.

Parameters:
topic - The topic (String) parameter.
See Also:
register(String[])

register

public void register(java.lang.String[] topics)
Subscribe with the specified topics parameter. The topics (String[]) parameter. The topics (String[]) parameter.

Parameters:
topics - The topics (String[]) parameter.
See Also:
register(String)

setUp

protected void setUp()
              throws java.lang.Exception
Set up.

Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tear down.

Throws:
java.lang.Exception

unregister

public void unregister()
Unregister.


1.0.0

Copyright (c) 2007 IBM