Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jmock unexpected invocation error #225

Open
smrititaneja18 opened this issue Jul 13, 2021 · 1 comment
Open

Jmock unexpected invocation error #225

smrititaneja18 opened this issue Jul 13, 2021 · 1 comment

Comments

@smrititaneja18
Copy link

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.

@smrititaneja18
Copy link
Author

does anybody know how to fix this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant