Skip to content

Commit 0fa18d9

Browse files
authored
Added real world example of Command pattern
JUnit 4 Statement class is also an example of Command pattern. Added that to list of real world examples
1 parent 53b673d commit 0fa18d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

command/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Use the Command pattern when you want to
4343
## Real world examples
4444

4545
* [java.lang.Runnable](http://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html)
46+
* [org.junit.runners.model.Statement](https://github.com/junit-team/junit4/blob/master/src/main/java/org/junit/runners/model/Statement.java)
4647
* [Netflix Hystrix](https://github.com/Netflix/Hystrix/wiki)
4748
* [javax.swing.Action](http://docs.oracle.com/javase/8/docs/api/javax/swing/Action.html)
4849

0 commit comments

Comments
 (0)