Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
HibernateResourceStateSubscriptionDAOImplTest.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.enabling.is.sn.resourcestate.hib; |
2 | 2 |
|
3 | 3 |
import java.util.Collection; |
4 |
import javax.annotation.Resource; |
|
5 | 4 |
|
6 | 5 |
import eu.dnetlib.enabling.is.sn.resourcestate.AbstractResourceStateSubscriptionDAOImplTest; |
7 | 6 |
import eu.dnetlib.enabling.is.sn.resourcestate.ResourceStateSubscription; |
... | ... | |
11 | 10 |
import org.junit.After; |
12 | 11 |
import org.junit.Test; |
13 | 12 |
import org.junit.runner.RunWith; |
13 |
import org.springframework.beans.factory.annotation.Autowired; |
|
14 | 14 |
import org.springframework.orm.hibernate5.HibernateJdbcException; |
15 | 15 |
import org.springframework.test.annotation.DirtiesContext; |
16 | 16 |
import org.springframework.test.context.ContextConfiguration; |
... | ... | |
35 | 35 |
/** |
36 | 36 |
* instance under test. |
37 | 37 |
*/ |
38 |
@Resource
|
|
38 |
@Autowired
|
|
39 | 39 |
private transient HibernateResourceStateSubscriptionDAOImpl hibdao; |
40 | 40 |
|
41 | 41 |
/** |
Also available in: Unified diff
Chnaged Resource to Autowired