java - How to have integration tests setUp() manipulate HSQL data in an in-memory DB running in embedded Jetty container? -
java - How to have integration tests setUp() manipulate HSQL data in an in-memory DB running in embedded Jetty container? - i trying run integration tests against rest web service process started in embedded jetty container within maven integration test phase. much working. i want configure server utilize in-memory hsql db such each junit test can setup database (create tables, insert records), , tear downwards (delete records). the application context of web services process defines next datasource: <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource"> <property name="driverclassname" value="#{applicationproperties['jdbc.driver.class.name']}" /> <property name="url" value="#{applicationproperties['jdbc.url']}" /> <property name="username" value="#{applicationproperties['db.user']}" /> <pro...