Package org.eclipse.epsilon.test.util
Class EpsilonTestUtil
- java.lang.Object
-
- org.eclipse.epsilon.test.util.EpsilonTestUtil
-
- Direct Known Subclasses:
EolAcceptanceTestUtil
public class EpsilonTestUtil extends Object
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EpsilonTestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getTestBaseDir(Class<?> clazz)
Convenience hack for handling exceptions when resolving this class's package source directory.static <T> String
printIfDifferent(boolean condition, T expected, T actual, String dataLabel)
static String
testCollectionsHaveSameElements(Collection<?> expected, Collection<?> actual, String collectionName)
Tests the two collections for equality, irrespective of ordering.
-
-
-
Method Detail
-
getTestBaseDir
public static String getTestBaseDir(Class<?> clazz)
Convenience hack for handling exceptions when resolving this class's package source directory.
-
printIfDifferent
public static <T> String printIfDifferent(boolean condition, T expected, T actual, String dataLabel)
- Parameters:
condition
-expected
-actual
-dataLabel
-- Returns:
- The message that was printed, or
null
if the condition was false.
-
testCollectionsHaveSameElements
public static String testCollectionsHaveSameElements(Collection<?> expected, Collection<?> actual, String collectionName)
Tests the two collections for equality, irrespective of ordering.- Parameters:
expected
-actual
-collectionName
-- Returns:
- The failure message, or
null
if the collections have the same elements.
-
-