1.0.0

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

java.lang.Object
  extended by TestSuite
      extended by org.eclipse.soda.dk.testagent.framework.ConfiguredTestSuite
Direct Known Subclasses:
TestAgentTestSuite

public class ConfiguredTestSuite
extends TestSuite

Version:
1.0.0

Constructor Summary
ConfiguredTestSuite()
          Constructs an empty TestSuite.
ConfiguredTestSuite(java.lang.Class theClass)
          Constructs a TestSuite from the given class.
ConfiguredTestSuite(java.lang.Class theClass, java.lang.String name)
          Constructs a TestSuite from the given class with the given name.
ConfiguredTestSuite(java.lang.String name)
          Constructs an empty TestSuite.
 
Method Summary
protected  void addTest(java.lang.Class testClass)
          Add test with the specified test class parameter.
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredTestSuite

public ConfiguredTestSuite()
Constructs an empty TestSuite.

See Also:
ConfiguredTestSuite(Class,String), ConfiguredTestSuite(Class), ConfiguredTestSuite(String)

ConfiguredTestSuite

public ConfiguredTestSuite(java.lang.Class theClass,
                           java.lang.String name)
Constructs a TestSuite from the given class with the given name.

Parameters:
theClass - The the class (Class) parameter.
name - The name (String) parameter.
See Also:
TestSuite#TestSuite(Class), ConfiguredTestSuite(), ConfiguredTestSuite(Class), ConfiguredTestSuite(String)

ConfiguredTestSuite

public ConfiguredTestSuite(java.lang.Class theClass)
Constructs a TestSuite from the given class. Adds all the methods starting with "test" as test cases to the suite. Parts of this method was written at 2337 meters in the Hüffihütte, Kanton Uri

Parameters:
theClass - The the class (Class) parameter.
See Also:
ConfiguredTestSuite(), ConfiguredTestSuite(Class,String), ConfiguredTestSuite(String)

ConfiguredTestSuite

public ConfiguredTestSuite(java.lang.String name)
Constructs an empty TestSuite.

Parameters:
name - The name (String) parameter.
See Also:
ConfiguredTestSuite(), ConfiguredTestSuite(Class,String), ConfiguredTestSuite(Class)
Method Detail

addTest

protected void addTest(java.lang.Class testClass)
Add test with the specified test class parameter.

Parameters:
testClass - The test class (Class) parameter.

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.

getSynchronizationService

public TestSynchronizationService getSynchronizationService()
Returns:
the syncService

1.0.0

Copyright (c) 2007 IBM