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:20:18; Modified: 16.07.2009 15:20:18;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6378AF25-FCCE-44f1-B082-2CD14271FF57}
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
Initial: "escidoc:persistent4"
public static const String
  ITEMS_LIMIT
Initial: "50"
public static const String
  USER_NAME
Initial: "test_dep_scientist"
public static const String
  USER_PASSWD
Initial: "verdi"
 
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
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 .