java.lang.IllegalStateException: missing behavior definition for the preceding method call getMessage(“title”)

后端 未结 5 1793
礼貌的吻别
礼貌的吻别 2021-02-06 22:54

I\'m using EasyMock(version 2.4) and TestNG for writing UnitTest.

I have a following scenario and I cannot change the way class hierarchy is defined.

I\'m testin

5条回答
  •  既然无缘
    2021-02-06 23:49

    In my case, it was caused by the omission of a return value specification (andReturn(...)). http://www.smcmaster.com/2011/04/easymock-issue-1-missing-behavior.html for more details.

提交回复
热议问题