Skip to content

Commit

Permalink
fix test with mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
freels committed Sep 8, 2010
1 parent 386a150 commit a18f15a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,8 +18,8 @@ class MemoizingDatabaseFactorySpec extends Specification with JMocker {
val memoizingDatabase = new MemoizingDatabaseFactory(databaseFactory)

expect {
one(databaseFactory).apply(hosts, "bar", username, password) willReturn database1
one(databaseFactory).apply(hosts, "baz", username, password) willReturn database2
one(databaseFactory).apply(hosts, "bar", username, password, null) willReturn database1
one(databaseFactory).apply(hosts, "baz", username, password, null) willReturn database2
}
memoizingDatabase(hosts, "bar", username, password) mustBe database1
memoizingDatabase(hosts, "bar", username, password) mustBe database1
Expand Down

0 comments on commit a18f15a

Please sign in to comment.