Class RuntimeTestUtil


  • public final class RuntimeTestUtil
    extends java.lang.Object
    Utility class for runtime unit tests.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List flatten​(java.util.List<java.util.List> listOfList)
      Flattens a nested list of elements.
      static java.util.List getRangedNumList​(int start, int end)
      Gets a list of integer pair elements in range.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRangedNumList

        public static java.util.List getRangedNumList​(int start,
                                                      int end)
        Gets a list of integer pair elements in range.
        Parameters:
        start - value of the range (inclusive).
        end - value of the range (exclusive).
        Returns:
        the list of elements.
      • flatten

        public static java.util.List flatten​(java.util.List<java.util.List> listOfList)
        Flattens a nested list of elements.
        Parameters:
        listOfList - to flattens.
        Returns:
        the flattened list of elements.