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, ProfileAbstractTestCase

public abstract class NotificationClientTestCase
extends ConfiguredTestCase

Since:
1.0
Version:
1.2.0

Constructor Summary
protected NotificationClientTestCase()
          No-arg constructor to enable serialization.
protected 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)
          Broadcast with the specified topic and data 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()
          Gets the notification service value.
 NotificationProbe getProbe()
          Gets the probe (NotificationProbe) value.
 void register(java.lang.String topic)
          Register with the specified topic parameter.
 void register(java.lang.String[] topics)
          Register 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
assertEquals, assertEquals, assertEquals, assertEquals, getBoolean, getBooleanArray, getByte, getByteArray, getChar, getCharArray, getConfigurationService, getContext, getDouble, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getObject, getObject, getObjectArray, getProperties, getShort, getShort, getShortArray, getString, getStringArray, getSynchronizationService, requestConfirmation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationClientTestCase

protected 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

protected 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)
Broadcast with the specified topic and data parameters.

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()
Gets the notification service value.

Returns:
the notificationService

getProbe

public NotificationProbe getProbe()
Gets the probe (NotificationProbe) value.

Returns:
the probe

register

public void register(java.lang.String topic)
Register with the specified topic parameter.

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

register

public void register(java.lang.String[] topics)
Register with the specified topics 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 - Exception.

tearDown

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

Throws:
java.lang.Exception - Exception.

unregister

public void unregister()
Unregister.


1.0.0

Copyright (c) 2007, 2009 IBM