CalculPrice { public static final double removeTaxe(double price, double tax) { return round(price / (1 + tax)); }  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 removeTaxTest() { double taxe = 0.021; double control = 48.97160; assertEquals(control, CalculPrice.removeTaxe(price, taxe)); }