File: JMockTestWithoutRunWithOrRuleAnnotation.md

package info (click to toggle)
error-prone-java 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,076 kB
  • sloc: java: 171,398; xml: 1,459; sh: 34; makefile: 7
file content (4 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
jMock tests must have a @RunWith(JMock.class) annotation, or the Mockery field
must have a @Rule JUnit annotation. If this is not done, then all of your jMock
tests will run and pass, but none of your assertions will actually be evaluated.
Your tests will pass even if they shouldn't.