As I was writing and running some integration tests I came across this error message.
1 2 |
DEBUG: org.springframework.test.context.TestContextManager - @TestExecutionListeners is not present for class [class ...]: using defaults. DEBUG: org.springframework.test.context.TestContextManager - Could not instantiate default TestExecutionListener class [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes available. |
Turns out I did not have @Test
annotation on a method I was trying to run as a JUnit test. The interesting thing I only got that error when other methods in that test class were annotated with @Test
. If there were no other methods it would throw a
"No runnable methods exception". Completely trivial but I did not immediately connect the error message to the actual cause.
Pingback: Maria Smith