Browse Source

docs: adding more test examples

pull/2651/head
amin 2 months ago committed by zanninso
parent
commit
a9a53977e9
  1. 6
      subjects/java/checkpoints/factory-blueprint/README.md

6
subjects/java/checkpoints/factory-blueprint/README.md

@ -4,8 +4,6 @@
You are given an incomplete Factory design pattern implementation with some incorrect parts. Complete and fix the class to demonstrate your understanding of how the Factory design pattern works. You are given an incomplete Factory design pattern implementation with some incorrect parts. Complete and fix the class to demonstrate your understanding of how the Factory design pattern works.
The method `showDetails` should print the class name 'ConcreteProductA' for `ConcreteProductA` and so on.
### Expected Classes ### Expected Classes
```java ```java
@ -70,8 +68,8 @@ public class ExerciseRunner {
```shell ```shell
$ javac *.java -d build $ javac *.java -d build
$ java -cp build ExerciseRunner $ java -cp build ExerciseRunner
This is ConcreteProductA This is ConcreteProductA.
This is ConcreteProductB This is ConcreteProductB.
Invalid product type Invalid product type
$ $
``` ```

Loading…
Cancel
Save