1.0.0

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

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

public abstract class ConfiguredTestCase
extends TestCase

Version:
1.0.0

Constructor Summary
ConfiguredTestCase()
          No-arg constructor to enable serialization.
ConfiguredTestCase(java.lang.String name)
          Constructs a test case with the given name.
 
Method Summary
 boolean getBoolean(java.lang.String key, boolean defaultBoolean)
          Get boolean with the specified key and default boolean parameters and return the boolean result.
 ConfigurationService getConfigurationService()
           
 TestContext getContext()
           
 float getFloat(java.lang.String key, float defaultFloat)
          Get float with the specified key and default float parameters and return the float result.
 int getInt(java.lang.String key, int defaultInt)
          Get int with the specified key and default int parameters and return the int result.
 long getLong(java.lang.String key, long defaultLong)
          Get long with the specified key and default long parameters and return the long result.
 java.lang.Object getObject(java.lang.String key, java.lang.Object defaultObject)
          Get object with the specified key and default object parameters and return the Object result.
 java.util.Dictionary getProperties()
          Gets the properties (Dictionary) value.
 java.lang.String getString(java.lang.String key, java.lang.String defaultString)
          Get string with the specified key and default string parameters and return the String result.
 TestSynchronizationService getSynchronizationService()
           
 boolean requestConfirmation(java.lang.String prompt)
          Request confirmation with the specified prompt parameter and return the boolean result.
 java.lang.String toString()
          Returns the string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfiguredTestCase

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

See Also:
ConfiguredTestCase(String)

ConfiguredTestCase

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

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

getBoolean

public boolean getBoolean(java.lang.String key,
                          boolean defaultBoolean)
Get boolean with the specified key and default boolean parameters and return the boolean result.

Parameters:
key - The key (String) parameter.
defaultBoolean - The default boolean (boolean) parameter.
Returns:
Results of the get boolean (boolean) value.

getConfigurationService

public ConfigurationService getConfigurationService()
Returns:
the configurationService

getContext

public TestContext getContext()
Returns:
the context

getFloat

public float getFloat(java.lang.String key,
                      float defaultFloat)
Get float with the specified key and default float parameters and return the float result.

Parameters:
key - The key (String) parameter.
defaultFloat - The default float (float) parameter.
Returns:
Results of the get float (float) value.

getInt

public int getInt(java.lang.String key,
                  int defaultInt)
Get int with the specified key and default int parameters and return the int result.

Parameters:
key - The key (String) parameter.
defaultInt - The default int (int) parameter.
Returns:
Results of the get int (int) value.

getLong

public long getLong(java.lang.String key,
                    long defaultLong)
Get long with the specified key and default long parameters and return the long result.

Parameters:
key - The key (String) parameter.
defaultLong - The default long (long) parameter.
Returns:
Results of the get long (long) value.

getObject

public java.lang.Object getObject(java.lang.String key,
                                  java.lang.Object defaultObject)
Get object with the specified key and default object parameters and return the Object result.

Parameters:
key - The key (String) parameter.
defaultObject - The default object (Object) parameter.
Returns:
Results of the get object (Object) value.

getProperties

public java.util.Dictionary getProperties()
Gets the properties (Dictionary) value.

Returns:
The properties (Dictionary) value.

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultString)
Get string with the specified key and default string parameters and return the String result.

Parameters:
key - The key (String) parameter.
defaultString - The default string (String) parameter.
Returns:
Results of the get string (String) value.
See Also:
toString()

getSynchronizationService

public TestSynchronizationService getSynchronizationService()
Returns:
the synchronizationService

requestConfirmation

public boolean requestConfirmation(java.lang.String prompt)
                            throws java.lang.InterruptedException
Request confirmation with the specified prompt parameter and return the boolean result.

Parameters:
prompt - The prompt (String) parameter.
Returns:
Results of the request confirmation (boolean) value.
Throws:
java.lang.InterruptedException - Interrupted Exception.

toString

public java.lang.String toString()
Returns the string value.

Returns:
The string (String) value.
See Also:
getString(String,String)

1.0.0

Copyright (c) 2007 IBM