i have an ServletContextListener which initializes my DB. and i’ve addid it in my web.xml:
<listener>
<listener-class>util.MySessionListener</listener-class>
</listener>
When i startup the server everything is fine.
but when i run my AbstractTransactionalJUnit4SpringContextTests-tests it is not called. what can i do?
i solved it with the
interface:
and in the
i can do my initialisation, hibernate and everything is ready at this point