Search in sources :

Example 1 with JpaTestEnvironment

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");
}
Also used : JpaTestEnvironment(dk.dbc.commons.persistence.JpaTestEnvironment) PGSimpleDataSource(org.postgresql.ds.PGSimpleDataSource)

Example 2 with JpaTestEnvironment

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);
}
Also used : JpaTestEnvironment(dk.dbc.commons.persistence.JpaTestEnvironment) Before(org.junit.Before)

Aggregations

JpaTestEnvironment (dk.dbc.commons.persistence.JpaTestEnvironment)2 Before (org.junit.Before)1 PGSimpleDataSource (org.postgresql.ds.PGSimpleDataSource)1