How to inject dataSource to jUnit for Integration Testing in SpringFramework 2
问题 I have the following dataSource defined in my spring-beans.xml file which I use in order to connect in my remote database : <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver"/> <property name="url" value="jdbc:mysql://localhost:3306/sample"/> <property name="username" value="root"/> <property name="password" value="root"/> </bean> I am building a couple of jUnit integration tests that I want