CalculPrice { public static double getTaxCost(double price, double taxRate) { return round(price * taxRate); }  static final double getGenericPrice(double price, double discount, double taxe, int binaryMask); static final double removeTaxe(double price, double tax); static final double getDiscountCost(double price, double discount); static final double applyDiscount(double price, double discount); static final double mergeDiscount(double productDiscount, double ticketDiscount); static double applyTax(double price, double taxRate); static double getTaxCost(double price, double taxRate); static double round(double number); static double round(double number, int decimalNumber); static final int DEFAULT_DECIMAL_NUMBER; }
@Test public void getTaxCostTest() { double taxe = 0.055; double control = 2.75; assertEquals(control, getGenericPrice(price, discount, taxe, Type.TAXE_COST)); }