mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 18:12:57 +00:00
Added tests for template-method pattern
This commit is contained in:
1 parent
09d3a82884
commit
47709e24b9
5 files changed
+243
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package com.iluwatar.templatemethod;
|
||||
|
||||
/**
|
||||
* Date: 12/30/15 - 18:19 PM
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class SubtleMethodTest extends StealingMethodTest<SubtleMethod> {
|
||||
|
||||
/**
|
||||
* Create a new test for the {@link SubtleMethod}
|
||||
*/
|
||||
public SubtleMethodTest() {
|
||||
super(
|
||||
new SubtleMethod(),
|
||||
"shop keeper",
|
||||
"The target has been chosen as shop keeper.",
|
||||
"Approach the shop keeper with tears running and hug him!",
|
||||
"While in close contact grab the shop keeper's wallet."
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user