uk.ac.ebi.intact.util
Class TestCaseHelper

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.TestCaseHelper

public class TestCaseHelper
extends java.lang.Object

Helper class for setting up/tearing down objects used for test cases. Typical usage in a TestCase class would be to create a TestCaseHelper in its constructor, optionally use the same IntactHelper instance, and delegate setUp/tearDown calls to TestCaseHelper. Then you can call one of the 'get' methods to obtain a collection of various intact object types that have been created, and then use any of them at random to perform tests. NB This class needs careful revision to work with the new model and new constructors.

Author:
Chris Lewington

Constructor Summary
TestCaseHelper()
           
 
Method Summary
 java.util.ArrayList getBioSources()
           
 java.util.ArrayList getComponents()
           
 java.util.ArrayList getExperiments()
           
 IntactHelper getHelper()
          provides a way to use the same helper object that is used to create/remove the example test data.
 java.util.ArrayList getInstitutions()
           
 java.util.ArrayList getInteractions()
           
 java.util.ArrayList getProteins()
           
 java.util.ArrayList getXrefs()
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseHelper

public TestCaseHelper()
               throws java.lang.Exception
Method Detail

getHelper

public IntactHelper getHelper()
provides a way to use the same helper object that is used to create/remove the example test data.

Returns:
IntactHelper a helper instance - never null unless class constructor failed

getInstitutions

public java.util.ArrayList getInstitutions()

getBioSources

public java.util.ArrayList getBioSources()

getExperiments

public java.util.ArrayList getExperiments()

getInteractions

public java.util.ArrayList getInteractions()

getProteins

public java.util.ArrayList getProteins()

getXrefs

public java.util.ArrayList getXrefs()

getComponents

public java.util.ArrayList getComponents()

setUp

public void setUp()

tearDown

public void tearDown()


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk