You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error when i am trying to run Jmock unit test case:
unexpected invocation : connection.prepareStatement("SELECT * FROM table_name WHERE column1 = ? AND column2= ?")
`at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:85)
at org.jmock.Mockery.dispatch(Mockery.java:250)
at org.jmock.Mockery.access$100(Mockery.java:46)
at org.jmock.Mockery$MockObject.invoke(Mockery.java:290)
at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
at org.jmock.internal.FakeObjectMethods.invoke(FakeObjectMethods.java:38)
at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:21)
at org.jmock.lib.legacy.ClassImposteriser$4.invoke(ClassImposteriser.java:136)
at $java.sql.Connection$$EnhancerByCGLIB$$cc8142f5.prepareStatement()
Using jmock-2.5.1.jar
Can anyone help me with this error please? I m stuck with this error, this is failing every time i am running existing test cases.
The text was updated successfully, but these errors were encountered:
I am getting below error when i am trying to run Jmock unit test case:
unexpected invocation : connection.prepareStatement("SELECT * FROM table_name WHERE column1 = ? AND column2= ?")
`at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:85)$java.sql.Connection$ $EnhancerByCGLIB$$cc8142f5.prepareStatement()
at org.jmock.Mockery.dispatch(Mockery.java:250)
at org.jmock.Mockery.access$100(Mockery.java:46)
at org.jmock.Mockery$MockObject.invoke(Mockery.java:290)
at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
at org.jmock.internal.FakeObjectMethods.invoke(FakeObjectMethods.java:38)
at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:21)
at org.jmock.lib.legacy.ClassImposteriser$4.invoke(ClassImposteriser.java:136)
at
Using jmock-2.5.1.jar
Can anyone help me with this error please? I m stuck with this error, this is failing every time i am running existing test cases.
The text was updated successfully, but these errors were encountered: