Search in sources :

Example 1 with SessionFactoryCreator

use of org.mamute.providers.SessionFactoryCreator in project mamute by caelum.

the class ForgotPasswordTest method setup.

@BeforeClass
public static void setup() throws IOException {
    SessionFactoryCreator sessionFactoryCreator = new SessionFactoryCreator(new MamuteDatabaseConfiguration(env, null, null));
    sessionFactoryCreator.init();
    SessionFactory sf = sessionFactoryCreator.getInstance();
    SESSION = sf.openSession();
}
Also used : SessionFactory(org.hibernate.SessionFactory) MamuteDatabaseConfiguration(org.mamute.providers.MamuteDatabaseConfiguration) SessionFactoryCreator(org.mamute.providers.SessionFactoryCreator) BeforeClass(org.junit.BeforeClass)

Aggregations

SessionFactory (org.hibernate.SessionFactory)1 BeforeClass (org.junit.BeforeClass)1 MamuteDatabaseConfiguration (org.mamute.providers.MamuteDatabaseConfiguration)1 SessionFactoryCreator (org.mamute.providers.SessionFactoryCreator)1