Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0f498d

Browse files
committed
committing code so that I can work on it from home and add behavior test
with mockito
1 parent 70ae303 commit c0f498d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
396 Bytes
Binary file not shown.

test/halterman/command/CommandPatternTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
package halterman.command;
22

3+
import static org.junit.Assert.*;
4+
35
import org.junit.Test;
46

57
public class CommandPatternTest {
68

79
@Test
810
public void shouldTurnOnLight() {
11+
Light l = new Light();
12+
Command loc = new LightOnCommand(l);
13+
14+
RemoteControl rc = new RemoteControl();
15+
rc.setCommand(loc);
916

17+
// Need Mockito here, will work on this from home.
1018
}
1119

1220

0 commit comments

Comments
 (0)