A question on easyMock2# Java - 爪哇娇娃
u*e
1 楼
In JUnit, I use easyMock to create mock object. However it throws exception:
ava.lang.IllegalStateException: missing behavior definition for the
preceeding method call getSubName()
at org.easymock.internal.MockInvocationHandler.invoke(
MockInvocationHandler.java:27)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.
java:45)
at $Proxy0.getSubName(Unknown Source)
at test.rms.TestDefaultDataPublisher.setUp(TestDefaultDataPublisher.java
Anyone knows what's goi
ava.lang.IllegalStateException: missing behavior definition for the
preceeding method call getSubName()
at org.easymock.internal.MockInvocationHandler.invoke(
MockInvocationHandler.java:27)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.
java:45)
at $Proxy0.getSubName(Unknown Source)
at test.rms.TestDefaultDataPublisher.setUp(TestDefaultDataPublisher.java
Anyone knows what's goi