This is my xml:
<bean class="java.lang.String" id="mongoDbTest">
<constructor-arg value="Test" />
</bean>
<bean class="com.mongodb.MongoClient" id="mongo" />
<bean class="org.mongodb.morphia.Morphia" id="morphia" />
My DAOs bean is getting mongo and morphia in the constructors. I would like to have a test class that using the DAO to save and assert some entities in the DB. After each test i would like to clean the DB from records.
Is there any xml attribute that i would be able to use?