org.eclipse.gemini.blueprint.test.internal.util
Class TestUtils
java.lang.Object
org.eclipse.gemini.blueprint.test.internal.util.TestUtils
public abstract class TestUtils
- extends Object
Utility class for running OSGi-JUnit tests.
- Author:
- Costin Leau
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 |
TestUtils
public TestUtils()
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 classloaderdestination
- test result reported to the outside frameworktest
- 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-2012. All Rights Reserved.