-
Clone the codebase
-
Run StrategyTest.java as a JUnit test
-
Add a new class RandomDiscount.java that implements Discount.java providing a random discount between 1%–50%
-
Add a RandomDiscount to StrategyTest.java
More details at SourceMaking.
Clone the codebase
Run StrategyTest.java as a JUnit test
Add a new class RandomDiscount.java that implements Discount.java providing a random discount between 1%–50%
Add a RandomDiscount to StrategyTest.java
More details at SourceMaking.