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 protectedEpsilonTestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetTestBaseDir(Class<?> clazz)Convenience hack for handling exceptions when resolving this class's package source directory.static <T> StringprintIfDifferent(boolean condition, T expected, T actual, String dataLabel)static StringtestCollectionsHaveSameElements(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
nullif 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
nullif the collections have the same elements.
-
-