scala - Scalatest & Easymock - not failing on empty expectations -


i'm using scalatest , easymock 3.4. tried other versions. i'm having issues testing w/ akka using easymock.

two strange behaviors: setting expectations worked if not called, can't tests fail if no expectations set , method called.

also i'm having these weird errors says method called it's supposed be! why fail? mocks used inside actor there async activity involved. can't seem use verify :( i'm guessing somehow related async nature of akka.

[info] java.lang.assertionerror: expectation failure on verify: [info] yourinterface.poll(0, 100): expected: 1, actual: 1

using of behavior in test works when introducing akka, start seeing weird behavior making hard post code examples.


Comments