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:12:42; Modified: 16.07.2009 15:12:42;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {358CA99B-3F15-4808-BCB9-43F49C86D610}
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
  CONTEXT
Initial: "Citation Style Testing Context"
public static const String
  ITEMS_LIMIT
Initial: "50"
private static Logger
  logger
Initial: Logger.getLogger(TestHelper.class)
public static const String
  SEARCH_CONTEXT
Initial: "escidoc.context.name=%22Citation%20Style%20Testing%20Context%22"
public static const String
  USER_NAME
Initial: "citman_user"
Notes: public static final String USER_NAME = "test_dep_scientist"; public static final String USER_PASSWD = "verdi";
public static const String
  USER_PASSWD
Initial: "citman_user"
 
TestHelper Methods
Operation Details
public static
getCitationStyleTestCollectionFromFramework(
   String fileName):void
Sequential
Tags: throws=Exception
Notes: Get itemList from the current Framework instance on hand of CONTENT_MODEL, CONTEXT, all released and writes to <code>DataSource/fileName</code>
public static
getItemListFromFramework():String
Sequential
Tags: throws=IOException,ServiceException,URISyntaxException
Notes: Get itemList from the current Framework instance on hand of CONTENT_MODEL
@param fileName
public static
getItemListFromFrameworkBase(
   String USER,
   String PASSWD,
   String filter):String
Sequential
Tags: throws=IOException,ServiceException,URISyntaxException
public static
getItemsFromFramework(
   String cql):String
Sequential
Tags: throws=Exception
public static
getItemsFromFramework_AJP():String
Sequential
Tags: throws=Exception
public static
getItemsFromFramework_APA():String
Sequential
Tags: throws=Exception
protected static
getItemsNumber(
   String itemListUri):int
Sequential
Tags: throws=Exception
public static
getTestItemListFromFramework():String
Sequential
Tags: throws=IOException,ServiceException,URISyntaxException
public static
getTestProperties(
   String csName):Properties
Sequential
Tags: throws=FileNotFoundException,IOException
protected static
loginUser(
   String userid,
   String password):String
Sequential
Tags: throws=HttpException,IOException,ServiceException,URISyntaxException
private static
transformToItemListAsString(
   SearchRetrieveResponseType searchResult):String
Sequential
Tags: throws=Exception
protected static
writeToFile(
   String fileName,
   byte[] content):void
Sequential
Tags: throws=IOException