Skip to content

Commit c40b41b

Browse files
committed
issue 23
1 parent 3b3a9be commit c40b41b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎koans/src/advanced/AboutMocks.java‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55

66
public class AboutMocks {
77

8-
@Koan()
9-
public void simpleAnonymousMock(){
10-
// HINT: pass a safe Collaborator implementation to constructor
11-
// new ClassUnderTest(new Colloborator(){... it should not be the
12-
// objective of this test to test that collaborator, so replace it
13-
new ClassUnderTest().doSomething();
14-
}
15-
168
static interface Collaborator {
179
public void doBusinessStuff();
1810
}
@@ -39,4 +31,12 @@ public boolean doSomething(){
3931
}
4032
}
4133

34+
@Koan()
35+
public void simpleAnonymousMock(){
36+
// HINT: pass a safe Collaborator implementation to constructor
37+
// new ClassUnderTest(new Colloborator(){... it should not be the
38+
// objective of this test to test that collaborator, so replace it
39+
new ClassUnderTest().doSomething();
40+
}
41+
4242
}

0 commit comments

Comments
 (0)