Class TestUtils


  • public class TestUtils
    extends java.lang.Object
    Utils class for testing
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertEquals​(java.math.BigDecimal expected, java.math.BigDecimal actual, boolean precisionMatters)
      Assert egality between BigDecimal numbers with the possibility to mention if the precision matters
      static CisOrder createSampleOrder()
      Create a sample order for testing
      • Methods inherited from class java.lang.Object

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

      • assertEquals

        public static void assertEquals​(java.math.BigDecimal expected,
                                        java.math.BigDecimal actual,
                                        boolean precisionMatters)
        Assert egality between BigDecimal numbers with the possibility to mention if the precision matters
        Parameters:
        expected - expected BigDecimal value
        actual - actual BigDecimal value
        precisionMatters - to specify if the precision matters
      • createSampleOrder

        public static CisOrder createSampleOrder()
        Create a sample order for testing
        Returns:
        the sample CisOrder