Class EpsilonTestUtil

    • Constructor Detail

      • EpsilonTestUtil

        protected EpsilonTestUtil()
    • 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.