org.eclipse.gemini.blueprint.test.internal.util
Class TestUtils

java.lang.Object
  extended by org.eclipse.gemini.blueprint.test.internal.util.TestUtils

public abstract class TestUtils
extends Object

Utility class for running OSGi-JUnit tests.

Author:
Costin Leau

Constructor Summary
TestUtils()
           
 
Method Summary
static junit.framework.TestResult cloneTestResults(OsgiTestInfoHolder source, junit.framework.TestResult destination, junit.framework.Test test)
          Clones the test result from a TestResult loaded through a different classloader.
static void unpackProblems(junit.framework.TestResult result, OsgiTestInfoHolder holder)
          Utility method which extracts the information from a TestResult and stores it as primordial classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUtils

public TestUtils()
Method Detail

cloneTestResults

public static junit.framework.TestResult cloneTestResults(OsgiTestInfoHolder source,
                                                          junit.framework.TestResult destination,
                                                          junit.framework.Test test)
Clones the test result from a TestResult loaded through a different classloader.

Parameters:
source - test result loaded through a different classloader
destination - test result reported to the outside framework
test - initial test used for bootstrapping the integration framework
Returns:
cloned test result

unpackProblems

public static void unpackProblems(junit.framework.TestResult result,
                                  OsgiTestInfoHolder holder)
Utility method which extracts the information from a TestResult and stores it as primordial classes. This avoids the use of reflection when reading the results outside OSGi.

Parameters:
result -
holder -


Copyright © 2006-2013. All Rights Reserved.