class: TestHelper

public class: TestHelper
Author: Johannes Müller (initial)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 123 $ $LastChangedDate: 2007-11-14 10:5; Complexity: 1
Dates: Created: 16.07.2009 15:21:36; Modified: 16.07.2009 15:21:36;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {ECC27C17-27DB-47e0-8437-BF9D8A76C037}
Helper class for all test classes.
 

Goto: Custom Properties, Fields, Methods

Appears in: test

Custom Properties
 
TestHelper Attributes
Attribute Details
private static const Logger
  LOGGER
Initial: Logger.getLogger(TestHelper.class)
annotations=@SuppressWarnings("unused")
private static long
  logStartTime
private static Properties
  properties
Initial: null
private static String
  timeLogComment
 
TestHelper Methods
Operation Details
public static
callRestWebservice(
   NameValuePair[] params,
   String content):String
Sequential
Notes: Interface to the validation service REST interface.
@return The report XML.
public static
callSoapWebservice(
   Object[] params):String
Sequential
Notes: Interface to the validation service SOAP interface.
@return The report XML.
public const static
getTestProperty(
   String name):String
Sequential
Notes: Reads test properties from test.properties file.
@return The value of the property. null if the property is not set.
public static
getValidationTransforming():ValidationTransforming
Sequential
Tags: throws=NamingException
Notes: Helper method to retrieve ValidationTransforming instance.
@return instance of get ValidationTransforming
public static
getXmlTransforming():XmlTransforming
Sequential
Tags: throws=NamingException
Notes: Helper method to retrieve XmlTransforming instance.
@return instance of getXmlTransforming
public static
initTimeLog(
   String comment):void
Sequential
Notes: Initialize time logging.
public static
logTime(
   String comment):void
Sequential
Notes: Create a time log entry.
public static
logTime(
   String comment,
   long warnTime):void
Sequential
Notes: Create a time log entry with a restrictive with a warning limit.
public static
logTime(
   String comment,
   long warnTime,
   long maxTime):void
Sequential
Notes: Create a time log entry.
protected
TestHelper():
Sequential
Notes: Hidden constructor.