Example usage for org.hibernate.testing.boot ServiceRegistryTestingImpl forUnitTesting

List of usage examples for org.hibernate.testing.boot ServiceRegistryTestingImpl forUnitTesting

Introduction

In this page you can find the example usage for org.hibernate.testing.boot ServiceRegistryTestingImpl forUnitTesting.

Prototype

public static ServiceRegistryTestingImpl forUnitTesting() 

Source Link

Usage

From source file:org.infinispan.test.hibernate.cache.commons.access.PutFromLoadValidatorUnitTest.java

License:LGPL

@BeforeClassOnce
public void setUp() throws Exception {
    TestResourceTracker.testStarted(getClass().getSimpleName());
    serviceRegistry = ServiceRegistryTestingImpl.forUnitTesting();
    tm = DualNodeJtaTransactionManagerImpl.getInstance("test");
    cm = TestCacheManagerFactory.createCacheManager(true);
    cache = cm.getCache().getAdvancedCache();
}

From source file:org.infinispan.test.hibernate.cache.util.CacheTestUtil.java

License:LGPL

public static SessionFactoryOptions sfOptionsForStart() {
    return new SessionFactoryOptionsImpl(new SessionFactoryBuilderImpl.SessionFactoryOptionsStateStandardImpl(
            ServiceRegistryTestingImpl.forUnitTesting()));
}