From 4991e1a41906b4a2732b32101112653e5f41a678 Mon Sep 17 00:00:00 2001 From: Philipp Meyerhoefer Date: Sat, 28 Dec 2019 11:44:17 +0000 Subject: [PATCH] fix test definitions --- .../src/test/scala/com/example/ReallySimpleExampleTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/test/scala/com/example/ReallySimpleExampleTest.scala b/examples/src/test/scala/com/example/ReallySimpleExampleTest.scala index b4941ca7..5c84f16d 100644 --- a/examples/src/test/scala/com/example/ReallySimpleExampleTest.scala +++ b/examples/src/test/scala/com/example/ReallySimpleExampleTest.scala @@ -86,8 +86,8 @@ class ReallySimpleExampleTest extends AnyFunSuite with MockFactory { val mockFormatter = mock[Formatter] inAnyOrder { - (mockFormatter.format _).when("Mr Bond").returns("Ah, Mr Bond. I've been expecting you") - (mockFormatter.format _).when("Natsu").returns("Not now Natsu!").atLeastTwice() + (mockFormatter.format _).expects("Mr Bond").returns("Ah, Mr Bond. I've been expecting you") + (mockFormatter.format _).expects("Natsu").returns("Not now Natsu!").atLeastTwice() } Greetings.sayHello("Natsu", mockFormatter)