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

Identical expectation already recorded; ... #42

Open
CharltonWyld opened this issue Nov 12, 2020 · 0 comments
Open

Identical expectation already recorded; ... #42

CharltonWyld opened this issue Nov 12, 2020 · 0 comments

Comments

@CharltonWyld
Copy link

有遇到这个错的吗?

使用的依赖和示例一样

java.lang.IllegalStateException: Identical expectation already recorded; please remove this verification or adjust the recording
	at com.mini.iot.test.jmockittest.examples.SayHelloClass.sayHello(SayHelloClass.java)
	at com.mini.iot.test.jmockittest.examples.SayHelloClassTest$5.<init>(SayHelloClassTest.java:88)
	at com.mini.iot.test.jmockittest.examples.SayHelloClassTest.test222(SayHelloClassTest.java:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
Caused by: Redundant expectation
	at com.mini.iot.test.jmockittest.examples.SayHelloClass.sayHello(SayHelloClass.java)
	at com.mini.iot.test.jmockittest.examples.SayHelloClassTest$4.<init>(SayHelloClassTest.java:77)
	at com.mini.iot.test.jmockittest.examples.SayHelloClassTest.test222(SayHelloClassTest.java:75)
	... 6 more
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