Search in sources :

Example 1 with JpaInitializer

use of ninja.jpa.JpaInitializer in project ninja by ninjaframework.

the class NinjaDaoTestBase method initialize.

@Before
public final void initialize() {
    NinjaPropertiesImpl ninjaProperties = new NinjaPropertiesImpl(ninjaMode);
    injector = Guice.createInjector(new JpaModule(ninjaProperties));
    jpaInitializer = injector.getInstance(JpaInitializer.class);
    jpaInitializer.start();
}
Also used : NinjaPropertiesImpl(ninja.utils.NinjaPropertiesImpl) JpaInitializer(ninja.jpa.JpaInitializer) JpaModule(ninja.jpa.JpaModule) Before(org.junit.Before)

Aggregations

JpaInitializer (ninja.jpa.JpaInitializer)1 JpaModule (ninja.jpa.JpaModule)1 NinjaPropertiesImpl (ninja.utils.NinjaPropertiesImpl)1 Before (org.junit.Before)1