class: TestHelper

public class: TestHelper
Author: Johannes Müller (initial)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 69 $ $LastChangedDate: 2007-12-11 12:41; Complexity: 1
Dates: Created: 16.07.2009 15:16:38; Modified: 16.07.2009 15:16:38;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6D950057-A283-4432-9390-F6B11D0413A9}
Helper class for all test classes.
 

Goto: Custom Properties, Fields, Methods

Appears in: test

Custom Properties
 
TestHelper Attributes
Attribute Details
public static const String
  CONTENT_MODEL_FACES
Initial: "escidoc:faces40"
public static const String
  CONTENT_MODEL_PUBMAN
Initial: "escidoc:persistent4"
public static const String
  ITEMS_LIMIT
Initial: "20"
private static const String
  PROPERTY_PASSWORD_ADMIN
Initial: "framework.admin.password"
private static const String
  PROPERTY_USERNAME_ADMIN
Initial: "framework.admin.username"
 
TestHelper Methods
Operation Details
public const
findFileInClasspath(
   String fileName):File
Sequential
Tags: throws=FileNotFoundException
Notes: Retrieve resource based on a path relative to the classpath.
@return The file defined by The given path.
public static
getItemListFromFramework(
   String contentModel,
   String limit):String
Sequential
Tags: throws=IOException,ServiceException,URISyntaxException
Notes: Get itemList from the current Framework instance
@param fileName
protected static
loginUser(
   String userid,
   String password):String
Sequential
Tags: throws=HttpException,IOException,ServiceException,URISyntaxException
public static
readBinFile(
   String fileName):byte
Sequential
Notes: Reads contents from text file and returns it as array of bytes.
@return
public static
readFile(
   String fileName,
   String enc):String
Sequential
Notes: Reads contents from text file and returns it as String.
@return Entire contents of filename as a String
public static
writeBinFile(
   byte[] content,
   String fileName):void
Sequential
Tags: throws=IOException
Notes: Reads contents from array of bytes and write to the file .