use of dk.dbc.commons.persistence.JpaTestEnvironment in project solr-document-store by DBCDK.
the class JpaSolrDocStoreIntegrationTester method setup.
@Override
public JpaTestEnvironment setup() {
final PGSimpleDataSource dataSource = getDataSource();
migrateDatabase(dataSource);
return new JpaTestEnvironment(dataSource, "solrDocumentStoreIT_PU");
}
use of dk.dbc.commons.persistence.JpaTestEnvironment in project solr-document-store by DBCDK.
the class DocumentRetrieveBeanIT method setupBean.
@Before
public void setupBean() {
bean = new DocumentRetrieveBean();
JpaTestEnvironment env = env();
em = env.getEntityManager();
bean.entityManager = em;
bean.brBean = BeanFactoryUtil.createBibliographicRetrieveBean(env);
}
Aggregations