mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 06:58:54 +00:00
Added tests for template-method pattern
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.iluwatar.templatemethod;
|
||||
|
||||
/**
|
||||
* Date: 12/30/15 - 18:12 PM
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class HitAndRunMethodTest extends StealingMethodTest<HitAndRunMethod> {
|
||||
|
||||
/**
|
||||
* Create a new test for the {@link HitAndRunMethod}
|
||||
*/
|
||||
public HitAndRunMethodTest() {
|
||||
super(
|
||||
new HitAndRunMethod(),
|
||||
"old goblin woman",
|
||||
"The target has been chosen as old goblin woman.",
|
||||
"Approach the old goblin woman from behind.",
|
||||
"Grab the handbag and run away fast!"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user