#1313 Rename DomesticTax,ForeignTax and review fixes
This commit is contained in:
@ -26,13 +26,13 @@ package com.iluwatar.separatedinterface.taxes;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class DomesticTaxTest {
|
||||
public class DomesticTaxCalculatorTest {
|
||||
|
||||
private DomesticTax target;
|
||||
private DomesticTaxCalculator target;
|
||||
|
||||
@Test
|
||||
public void testTaxCaluclation(){
|
||||
target = new DomesticTax();
|
||||
public void testTaxCalculation(){
|
||||
target = new DomesticTaxCalculator();
|
||||
|
||||
var tax=target.calculate(100.0);
|
||||
Assertions.assertEquals(tax,20.0);
|
@ -26,13 +26,13 @@ package com.iluwatar.separatedinterface.taxes;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ForeignTaxTest {
|
||||
public class ForeignTaxCalculatorTest {
|
||||
|
||||
private ForeignTax target;
|
||||
private ForeignTaxCalculator target;
|
||||
|
||||
@Test
|
||||
public void testTaxCaluclation(){
|
||||
target = new ForeignTax();
|
||||
public void testTaxCalculation(){
|
||||
target = new ForeignTaxCalculator();
|
||||
|
||||
var tax=target.calculate(100.0);
|
||||
Assertions.assertEquals(tax,60.0);
|
Reference in New Issue
Block a user