141516171819202122
public class TestStringCalculator { StringCalculator sc = null; @Before public void setup() { INumericParser parser = new NumericParserImpl(); INumericAdder adder = new NumericAdderImpl(); sc = new StringCalculator(parser, adder); }
17181920212223
public class TestNumericParser { INumericParser parser; @Before public void setUp() { parser = new NumericParserImpl(); }