A class Car is given (listed below), which ist to be expanded as a seperate class for each expansion.
public class Car {
private String description;
private int price;
public Car(String description, int price) {
this.description = description;
this.price = price;
}
public String getDescrition() {
return description;
public int getPrice() {
return price;
}
}
Also there is to be created a Simple Factory to create Cars with more than one Decorators.
This all should be tested with JUnit tests.
The goal of the excercise is to learn the principals of some of the programm pattern, which are learned in school. And also to refresh the use of JUnit tests.