org.eclipse.gemini.blueprint.test.internal.holder
Class OsgiTestInfoHolder

java.lang.Object
  extended by org.eclipse.gemini.blueprint.test.internal.holder.OsgiTestInfoHolder

public class OsgiTestInfoHolder
extends Object

Custom class used for storing JUnit test results. To work, this class should always be loaded through the same class loader, to transport information from OSGi to the outside world.

Author:
Costin Leau

Field Summary
static OsgiTestInfoHolder INSTANCE
          static instance
 
Constructor Summary
OsgiTestInfoHolder()
          Constructs a new OsgiTestInfoHolder instance.
 
Method Summary
 void addTestError(Throwable testProblem)
           
 void addTestFailure(Throwable testProblem)
           
 void clearResults()
          Clear all information.
 Long getTestBundleId()
          Returns the testBundleId.
 String getTestClassName()
          Returns the testClassName.
 List getTestErrors()
           
 List getTestFailures()
           
 String getTestMethodName()
          Returns the testMethodName.
 void setTestBundleId(Long testBundleId)
           
 void setTestClassName(String testClassName)
           
 void setTestMethodName(String testMethodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final OsgiTestInfoHolder INSTANCE
static instance

Constructor Detail

OsgiTestInfoHolder

public OsgiTestInfoHolder()
Constructs a new OsgiTestInfoHolder instance.

Method Detail

getTestBundleId

public Long getTestBundleId()
Returns the testBundleId.

Returns:
Returns the testBundleId

setTestBundleId

public void setTestBundleId(Long testBundleId)
Parameters:
testBundleId - The testBundleId to set.

getTestClassName

public String getTestClassName()
Returns the testClassName.

Returns:
Returns the testClassName

setTestClassName

public void setTestClassName(String testClassName)
Parameters:
testClassName - The testClassName to set.

addTestFailure

public void addTestFailure(Throwable testProblem)
Parameters:
testProblem - The testResult to set.

addTestError

public void addTestError(Throwable testProblem)

getTestMethodName

public String getTestMethodName()
Returns the testMethodName.

Returns:
Returns the testMethodName

setTestMethodName

public void setTestMethodName(String testMethodName)
Parameters:
testMethodName - The testMethodName to set.

getTestFailures

public List getTestFailures()

getTestErrors

public List getTestErrors()

clearResults

public void clearResults()
Clear all information. Used between test runs to clear results.



Copyright © 2006-2012. All Rights Reserved.